Ionic Version 1.3.1
ionc cloud Version 0.16.0
iOS 10.3.1
$ionicDeploy.check().then(function(response) {
// response will be true/false
if (response) {
$ionicLoading.show({
template: '<ion-spinner icon="ripple" class="spinner-energized"></ion-spinner><br/>Aguarde, estamos atualizando seu app.'
});
// Download the updates
$ionicDeploy.download().then(function() {
// Extract the updates
$ionicDeploy.extract().then(function() {
// Load the updated version
$ionicDeploy.load();
}, function(error) {
// Error extracting
}, function(progress) {
// Do something with the zip extraction progress
console.log(progress);
});
}, function(error) {
// Error downloading the updates
}, function(progress) {
// Do something with the download progress
console.log(progress);
});
}
}, function(error) {
// Error checking for updates
});
the error:
2017-04-26 17:04:06.053043-0300 Otimicar[2765:1209571] version is: 0.0.1
2017-04-26 17:04:06.053159-0300 Otimicar[2765:1209571] uuid is:
2017-04-26 17:04:06.053184-0300 Otimicar[2765:1209571] channel is: production
2017-04-26 17:04:06.053256-0300 Otimicar[2765:1209571] JSON Error: (null)
2017-04-26 17:04:06.053374-0300 Otimicar[2765:1209571] Response: (null)
2017-04-26 17:04:06.053533-0300 Otimicar[2765:1209571] JSON: {
data = {
available = 1;
compatible = 1;
metadata = {
};
snapshot = "879f90da-2ab9-11e7-b4a6-bac73bbac515";
url = "https://api.ionic.io/deploy/snapshots/879f90da-2ab9-11e7-b4a6-bac73bbac515/download?app_id=b58175d0";
};
meta = {
"request_id" = "f1f25b56-589f-456d-c525-fb3ff0d9cf33";
status = 200;
version = "2.0.0-beta.0";
};
}
2017-04-26 17:04:06.053569-0300 Otimicar[2765:1209571] compatible: True
2017-04-26 17:04:06.053617-0300 Otimicar[2765:1209571] available: True
2017-04-26 17:04:06.053690-0300 Otimicar[2765:1209571] update uuid: 879f90da-2ab9-11e7-b4a6-bac73bbac515
2017-04-26 17:04:06.054047-0300 Otimicar[2765:1209571] update is true
2017-04-26 17:04:06.179360-0300 Otimicar[2765:1209006] Error in Success callbackId: IonicDeploy1474655124 : TypeError: undefined is not an object (evaluating 'this.infofn.apply')