Does anyone know how to execute a function only after an update using Ionic Framework?
The situation is as follow: My app is already on the store. I want to make an update. After that update I want a function to execute when the user opens the app for the first time after the update. How can I achieve this?
Thank you!
Is this what you're after? Probably best to put it into your app's run() function:
$ionicPlatform.ready(function() {
if (!window.localStorage.hasOwnProperty('functionExecuted')){
//Place your code here
window.localStorage['functionExecuted'] = true;
}
});