A cordova plugin to support in-app updates in Android and IOS.
- devices running Android 5.0 (API level 21) or higher,
- Play Core library 1.5.0 or higher
- since 11.3
cordova plugin add https://github.com/phiamo/cordova-plugin-inappupdatemanager
Vanilla JS
//after device is ready
var fail = function (message) {
alert(message)
}
var success = function (data) {
console.log("succes");
}
cordova.plugins.InAppUpdateManager.checkForImmediateUpdate( success, fail );
Typescript TODO: @types
If this plugin helps your project then don't forget to ⭐ star the repo.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Initial credits go to Partha Roy whose repository and code from https://github.com/iamparthaonline/cordova-in-app-update-android was the basis to get this done