Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to force users of older app versions to update?

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?

like image 874
swalkner Avatar asked Nov 18 '15 09:11

swalkner


People also ask

Can you force users to update app?

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.

Can I force user to update app Android?

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.

How do you update an older version of an app?

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“.


2 Answers

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, ... ).

like image 51
Virthuss Avatar answered Oct 10 '22 17:10

Virthuss


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.

like image 35
Ranjit Avatar answered Oct 10 '22 18:10

Ranjit