Hi, I have an app that runs 24x7 on users' devices and will be available on the Play Store. What I'm trying to work out is the best way to install new versions of the app. Ideally, upgrades won't require user interaction. What I don't understand is how Android updates installed apps. I can envisage three different approaches that Android might take when a new update becomes available on the Play Store:
1. Android downloads the update and then waits for the app to not be running before installing the update. When the user next runs the app, they will be using the new version.
2. Android downloads the update, forces a termination of the app, installs the update and then restarts the app.
3. Android never downloads an update while an app is running.
Can anyone tell me which of 1 to 3 is correct, or if there is another approach that's used? I can accommodate 1 and 2, but I'm not sure how it would be best to handle 3.
Thanks.
1. Android downloads the update and then waits for the app to not be running before installing the update. When the user next runs the app, they will be using the new version.
2. Android downloads the update, forces a termination of the app, installs the update and then restarts the app.
3. Android never downloads an update while an app is running.
Can anyone tell me which of 1 to 3 is correct, or if there is another approach that's used? I can accommodate 1 and 2, but I'm not sure how it would be best to handle 3.
Thanks.