Hi guys, I tried to use ionic-deploy to update my app without resubmitting to App Store.
And the app got updated for the first time, everything is fine, but after that, I keep getting “Plugin not loaded” error.
I’ve referenced this topic, but still I get the same error.
After reading through the docs, I found this line
Be careful not to deploy versions of your app which user old versions of the components, as you may lose access to your cordova native plugins.
But I don’t know what it’s talking about, should I check my ionic version?
Here’s my ionic info:
$ ionic info
Your system information:
OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 5.0.0
Ionic CLI Version: 1.3.16
Xcode version: Xcode 6.3.2 Build version 6D2105
ios-sim version: 3.1.1
Here’s my code:
$ionicDeploy.check().then(function (response) {
if (response) {
alert("Update Process --------- Has Update!");
$ionicDeploy.download().then(function() {
alert("Update Process ------- Downloaded!");
$ionicDeploy.extract().then(function() {
alert("Update Process ------- Extracted!!");
$ionicDeploy.load();
}, function(error) {
}, function(progress) {
});
}, function(error) {
}, function(progress) {
});
} else {
// No updates, load the most up to date version of the app
$ionicDeploy.load();
}
},
function(error) {
console.error("ionicdeploy error", error);
alert("Update Error " + JSON.stringify(error));
});
});