I have this situation - PhoneGap app running in Android. It uses external API on my server. It might happen that I will change API structure so I will need to perform update of my mobile app to a newer version. Is there some automatic or half-automatic way how can I force update of the Phonegap app on the Android phone ?
I can display message to the user, that the app is outdated and he should go to Android Market and update the app from there, but I am looking for some more comfortable way how to force this update.
EDIT - Question specification:
I am not looking for a way how to load external script on application startup. I am looking for PhoneGap-Android-specific solution how to invoke application update.
You can download it from the Google Play Store, then use APKMirror Installer to install or update your apps afterward. Otherwise, grab the APKMirror Installer app from the official APKMirror website. Visit the APKMirror website and search for an app you want to install on your Android device.
The developer publishes a new version (4.0). The 90-day period ends, the app is added to the update queue and will be automatically updated according to the default update behavior, once the constraints are met. The constraints are met and therefore the app is updated to the latest available version (4.0).
Google Play will notify your users that the app has an update via the notification bar. If you set up a notification system yourself, the likely result would be that, although the user is notified of an update sooner, when he/she goes to Google Play to install the update it will not yet be available.
Ok, I've finally found a solution to my problem.
I use this PhoneGap plugin to launch Android Intent, specifically its Intent.ACTION_VIEWS described here in Android docs.
This successfully fires Android Market App with the option to update my app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With