This is a plugin for cordova(only Android). What plugin did:
- download the file from server and put it into download file (your device)
- add notification in notification bar
- after download complete show the install dialog
What should you do:
- copy update_app.xml into your project/res/layout. create layout file if no
- add permission <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> to AndroidManifest.xml
- invoke the method updateFromServer(url, serverVersion, successCallback, errorCallback) use javascripr in your js file
- url: the url that where apk file will download
- serverVersion: the new version is need