-
Notifications
You must be signed in to change notification settings - Fork 467
Update work after restart the App #187
Comments
Possible dup of #140. Are you deploying to a device via cordova? If so, what device type? |
Hi @gareth-ferneyhough D. |
@davidellolio can you share, what plugins are installed in your project? Also, what version of Ionic platform? |
Hi @nikDemyankov, I used this plugins: ionic-version : 1.7.16 This is a log after installed:
Thank you |
Hi, Thanks! Will try to reproduce that. |
I add more information:
Thank you, |
Actually, this line would be, probably, ignored. When update has been installed - plugin should reload webview to the index page. And the index page is the one, that is defined in <content src="index.html" /> So, it will take this url and load it in the view. |
Haven't got time to play with your setup yet, sorry... |
@davidellolio Tried it out for Android and worked fine. This is what I did:
System:
Can you try to do the same steps in your app and see, if it works? Maybe all you need is to remove |
Thank you @nikDemyankov I will check if have any issue in javascript and follow your steps. |
@nikDemyankov I have deleted $state.go row in installationCallback function and now I don't have update problem. I have checked js files and I don't have error. Maybe this command is not accepted. Thank you for your support. |
Good :) Please, close the issue, if it is solved :) |
Yes. Thank you |
Hi guys,
I have used javascript chcp support for the update the ionic project.
The update works only restart the app.
Steps to reproduce
-auto-download set to true in config.xml
-auto-install set to false in config.xml
-Functions used :
checkForUpdate: function() {
chcp.fetchUpdate(app.fetchUpdateCallback);
},
fetchUpdateCallback: function(error, data) {
if (error) {
console.log('Failed to load the update with error code: ' + error.code);
console.log(error.description);
return;
}
console.log('Update is loaded, running the installation');
},
installationCallback: function(error) {
if (error) {
console.log('Failed to install the update with error code: ' + error.code);
console.log(error.description);
} else {
console.log('Update installed!');
}
}
When the installation is terminated the installationCallback function is called and angular view my old homepage and not new homepage.
If i want see the new homepage i must restart the app.
Could you help me?
Thank you,
Davide
The text was updated successfully, but these errors were encountered: