I’m using this bit of code from the docs:
My issue is once I hit 100% downloaded my splash screen goes gets hidden, THEN the app reloads & I see a switch from the old to the new. Is there a callback I can listen for to hide my splashscreen AFTER the app reloads with the new update?
// Check for updates
$ionicDeploy.check().then(function(response) {
// response will be true/false
if (response) {
// 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
if(progress>=100){
$cordovaSplashscreen.hide()
}
console.log(progress);
});
}
}, function(error) {
// Error checking for updates
});