I labeled this post as “ionic” but it really is broader than that.
This is more of a best practice/guideline advice than a question:
What do you guys and gals do to handle your app updates?
I’m talking about your own code, NOT the framework, or cordova or any dependencies or even app/play store related features.
Let me explain with a typical hybrid application that rely on a backend server.
You have your app up and running in the store, already hundreds of users.
In the new update you want to publish, there are several new features.
However you want some part of your new code to only be triggered once after the app has been updated. for example, a guide for new users, or a “what’s new” banner.
The first-tour guide would obviously appear only once after the app has been installed and the changelog banner would appear every-time the app has been updated.
I figured you should store the version number, compare it each time you launch the application and do stuff based on the update status.
This is all possible to do by hand but I find it strange that there are not a single library to handle just that.
Something that would check the app version, trigger an event and you would just have to act on it.
This pattern is becoming quite common on web application: relying on local storage to sync, store and compare local information with remote.
EDIT: I found ngStorage to be interesting but it’s just about reading/writing storage, nothing about checking version numbers.
What do you think ?
Does Ionic provide something to ease that process ?
Thanks for the awesome framework !
PS: Despite the very similar title, this post does not cover the same topic as Handling app updates