Controlled mandatory codepush UX #4749
Ticket(s) / Related Merge Requests
Summary of Changes
- CodePush now installs updates and restarts after the app was in the background for more than 15 minutes
- if the app was launched and no users were logged in, and there was an available update, a screen will be shown and the update will be installed and the app restarted immediately.
- CodePush now checks for updates on app resume instead of app start
- codePush debugger now clears all updates before changing the deployment
(Summarize the changes made concisely)
-
Changelog file updated with this template (one or more) -
Added for new features. -
Changed for changes in existing functionality. -
Deprecated for soon-to-be removed features. -
Removed for now removed features. -
Fixed for any bug fixes. -
Security in case of vulnerabilities.
-
Testing Considerations
- make sure you install the app and a new codepush is available, you should see the update screen
- make sure you install the app and a new incompatible native update is available, make sure you don't see the update screen
- make sure you have the app running and an update is available, put the app in background for 10 mintues, resume it and nothing should happen
- make sure you have the app running and an update is available, put the app in background for 15 mintues and 1 second, resume it and you should see the app restart
- do the top 2 steps with mandatory codepush
significantly harder to test
- do step 1 but turn off your internet while downloading, after reconnecting either the update screen should go away and update NOT installed, or the download should resume
- do the above step, but close the app while downloading. In the next start you should see the download screen again
Regression Scope
- codepush install strategy
- startup
Platform Affected (web, mobile, etc)
all
Developer Testing Completed
local, iOS
Screenshots
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Related to #4749 (closed)
Edited by Manish