react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Question : google in app update and code push

Open yakir1986 opened this issue 3 years ago • 1 comments

It's not a issue, but I have a question:

I implemented a mechanism for automatic updates through Google (In-app updates) like this : https://developer.android.com/guide/playcore/in-app-updates.

Every time the application starts, the function check if there is a binary update (not code push / js files) for the application via google play. And if yes it will popup a message and ask the user if he wants to download the app update.

Now I also have a function that checks if there are updates through Code Push, and install them ON_NEXT_RESUME like this :

checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME, installMode: CodePush.InstallMode.ON_NEXT_RESUME,

So my question is this:

What happens if Code Push downloaded an update and is waiting for the next restart / next resume of the application, and at the same time In-app updates (through Google) just download and update and then restart the app.

Will this cause some issue to the app on start? because after all, Code Push waiting for the next restart in order to install the update.

I would appreciate it if someone could clarify this. Thanks

yakir1986 avatar Sep 05 '22 11:09 yakir1986

+1

ginccc avatar Sep 14 '22 07:09 ginccc

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Nov 13 '22 09:11 ghost

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

ghost avatar Nov 28 '22 12:11 ghost