What do you mean by “triggering an app update”?
App updates require to publish a new build version of your app to the stores, which then provide the update to your users.
The store takes care of rolling your updates out, they will be available similar to updates of other installed apps.
To notify users of such a new update, you can do several things:
If your app uses a server-triggered push-notification plugin like OneSignal or GCM, you can manually send out a notification to all registered users as soon as the update is rolled out and available for everyone.
You can check if the currently installed app version matches the latest version and show a dialog in the app that a new version is available then. In this case you have to provide the information which version is the newest one somewhere outside of the actual app.
Your app can then compare the version you e.g. load from a file or API on your web-server to the one that is installed currently. If you increase the version on your server, the app can then detect this change. A possible solution would be to use an XmlHttpRequest for checking the file on your server. The QML Loader type also allows to dynamically load a QML file from a web-server -> this approach is also used in our One Card demo.
What I mean by ‘triggering app update’ was at app startup, display a dialog saying “New version available” with options for “Update” or “Later”. Clicking “Update” would take them to the app store page to download the new version.
However, if the various app stores manage this automatically, I’d prefer to leave it at that.
yes, the stores manage the rollout of the update. But as mentioned above you can additionally display a Dialog at app-startup within your app to notify the users that there’s a new version they can install.
The older version that is installed does not know whether a new version is available or not, so you can use the solutions described above to decide whether to show the custom update dialog within your app or not.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: