Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force PhoneGap Android app to perform self-update?

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.

like image 314
Frodik Avatar asked May 04 '11 16:05

Frodik


People also ask

How can I update my apps without Play store?

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.

How do Android app updates work?

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).

How do I notify people of an Android app update?

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.


1 Answers

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.

like image 99
Frodik Avatar answered Nov 14 '22 09:11

Frodik