Android force download of applications on new device






















For forcing the app user to update if an update is available in the market, you should first check the app version on the market and compare it with the version of the app on the device. If they are different, it may be an update available.

In this post I wrote down the code for getting the current version of market and current version on the device and compare them together. I also showed how to show the update dialog and redirect the user to the update page. In this case he will be forced to update, before he can use the app. You'll have two options with this API; the first is a full-screen experience for critical updates when you expect the user to wait for the update to be applied immediately.

The second option is a flexible update, which means the user can keep using the app while the update is downloaded. You can completely customize the update flow so it feels like part of your app.

It is good idea to use remote config for app version and always check in launch activity is current app version is same as remote version or not if not force for update from app store.. I implemented a lightweight library to easily implement in-app updates.

You can find to the following link an example about how to force the user to perform the update. You can notify your users that there is a new version of the current app available to update. Also, if this condition is true, you can block login in the app. Please see if this provides you the solution. Well, there could be many solutions to this problem like scraping the version code from App Page Google Play App page , etc. But I am going to show you the ultimate solution that won't cost a penny and will work like magic.

If the fetched version code is greater than the current version, show an AlertDialog asking to update the app. Otherwise, the app is already updated. So, whenever you roll out the new version, you need to put that new version code in Firebase Remote config panel. You can read the whole tutorial on how to force users to update the app using Firebase Remote Config. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?

Collectives on Stack Overflow. Learn more. Force update of an Android app when a new version is available Ask Question. Asked 8 years, 1 month ago.

Active 3 months ago. Viewed k times. Dunedan 6, 6 6 gold badges 33 33 silver badges 43 43 bronze badges. Try it, Very simple. The best practice is to support old versions - especially for Android devices, because a forced update block on an Android app sends users to Google Play app, which is notorious for caching the old version of app pages for hours with no refresh capability except to force quit the app - a big problem most don't know about unless you have to answer 1, phone calls related to this on release day.

Version your APIs. Add a comment. Active Oldest Votes. Michael Michael 3, 4 4 gold badges 24 24 silver badges 27 27 bronze badges. Would you show popup everytime the app starts and recommendUpgrade is true?

For recommended upgrade, I think you shouldn't show again if user declined. You could also show it "once every n times that the user opened the app". You could decide the n value yourself and implement that. RaphaelC This really depends on your server side implementation. Browse All Microsoft Office Articles What Is svchost. Browse All Privacy and Security Articles Browse All Linux Articles Browse All Buying Guides. Best iPhone 13 Pro Case. Best Bluetooth Headphones for Switch. Best Roku TV. Best Apple Watch.

Best iPad Cases. Best Portable Monitors. Best Gaming Keyboards. Best Drones. Best 4K TVs. Best iPhone 13 Cases. Best Tech Gifts for Kids Aged Awesome PC Accessories. Best Linux Laptops. Best Bluetooth Trackers. Best eReaders.

These are the usual steps:. With this enabled, Android will store all the data to Google Drive. So, once you switch to the new phone or restart your old one, the files will be saved.

You should just enter your Google account information and the files will be restored. If you want to backup Photos, the best way to do it is to enable backing up on Google Photos. This app is usually preinstalled on every new Android smartphone.

This way, you can back up and transfer your visual memories from one device to another without fear that they may disappear forever. Of course, it goes without saying that this will only work if there is an actual OTA update being rolled out to your device. Users waiting for the Android 4.

Subscribe to our RSS Feed!



0コメント

  • 1000 / 1000