Setup: My app checks for new code push ON_APP_RESUME, and install updates ON_APP_RESTART.
const codePushOptions = {
installMode: codePush.InstallMode.ON_NEXT_RESTART,
checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
mandatoryInstallMode: codePush.InstallMode.ON_NEXT_RESUME,
};
I'm using SyncStatus to display a message prompting users to restart the app, after a period of time has elapsed.
After SyncStatus correctly goes to UPDATE_INSTALLED, on the next resume I see it transition to CHECKING_FOR_UPDATE and then UP_TO_DATE, even though the update has not yet been installed. The next app restart will install the update, as normal.
Fresh app install with valid codepush key, etc. Logging sync status in console or in a
It seems like every time code push checks for a new update, it resets the state away from UPDATE_INSTALLED, even if an update is installed and pending restart. Additionally it looks like accepting new iOS permissions triggers a recheck, although I'm not 100% sure of that.
Hi @Phredward, thank you for reaching us, I've just created PR fixing the issue, so would you have a chance to look at it and verify if it works as expected?
Hi @sergey-akhalkov
That totally solves the problem, thanks so much!
Closing this due to #765 has been merged.
Most helpful comment
Hi @sergey-akhalkov
That totally solves the problem, thanks so much!