Is it possible to remove older versions from the app stores and avoid users from using them? I did not include some framework that checks if there is an update, so my question is if there is something native from Google and/or Apple that enables me to mark older versions as deprecated or sth. like that.
I'm afraid there isn't something like that, but maybe someone knows a solution?
Unlike web applications, when the mobile app is installed on the user's device you have no control already. Unfortunately, there is no built-in solution, that works for both App Store and Google Play, to force users to update their installed application versions.
In-app updates is a Google Play Core libraries feature that prompts active users to update your app. The in-app updates feature is supported on devices running Android 5.0 (API level 21) or higher.
Fortunately, there is a way to downgrade an app if you need to. From the Home screen, select “Settings” > “Apps“. Choose the app you wish to downgrade. Select “Uninstall” or “Uninstall updates“.
You can still make an API call or an httpUrlConnection
to get the latest version available, or check for this update on the google market if the user has it, and then redirect the user on the market in case of available update, preventing him to use the app if this case.
However if the user disconnect this solution won't work anymore. If you are not afraid of what can do the user offline, this solution work.
Edit: sorry, didn't see your app was released yet!
So I don't think it's possible then, especially for security reasons. And don't forget that many user don't have the google market ( blocked in china, sometimes replaced by the samsung store or another one, ... ).
AFAIK you can do it in your app itself.
Just save android:versionName
on first app initialization.
Then in each start, get the current version and check compare it with the last /saved one. If its same then ignore. If different then you can show one non cancelable dialog to force user to update the app.
To get app version:
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
String version = pInfo.versionName;
I think its a friendly way for developers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With