When my app purpose an update to the user, like below :
(by checking if exists new version trough the webapi)
is there a good way to make the script ?
- Close the app
- Launch the Store app (PlayStore or AppStore , if exist)
- make it positionning on the app into the store folder
(like a link : without forcing , just to suggest the update)
Like : in-app updates of the Google PlayCore library
You can upload a text file with the current version to a server and then check the value with OkHttpUtils2. If it is larger than App.VersionCode then ask the user whether they like to update.