How to update app with Google Play and force download - android

I'm using android studio. I have developed an app and now I want to upload it to Google Play. I have a license and I have uploaded an app before, but I didn't really know what I was doing at that time.
What I want is to upload my app to Google Play, and then upade it without losing the reviews and rating. How do I do that?
And, what is the best way to force a user to download an update? I am going to upload the app to Google Play and to Amazon Appstore (for android), so a link to Google Play or something similar is maybe not the best solution. I was thinking - a toast message "please update the app". What do you think?

Updating an existing apk on Google Play Store:
1) Go to your Google Play Developer Console
2) Select All applications in that select "Your Application"
3) Select Upload APK.
4) Choose from the Production, Beta, or Alpha channels and select Upload your APK.
It take few hours to publish update. more information about upload, publish, etc.
Forcing users to update: There are three things
1) It is not possible in Google Play Store, unless user have set automatic update on.
2) You can use external library like UpdateChecker, AppUpdater, etc.
3) You can change your application structure in that way that whenever user starts you application internal contents get update. (This is not a feasible option, I guess)
What is KeyStore?
It is used to build singed apk.
Keep your keystore in a secure location. If you lose your keystore, you'll need to publish the app with a new package name and a new key. If you need to do this, you should also unpublish the original app and update its description

Please check out this library, actually it provides what you want with simple approach.
https://android-arsenal.com/details/1/3094

When you publish a new version of your app to the Play Store, you will not lose any of the prior ratings for that app.
You can't force users to update your app. It is fully under their control. Some people may have automatic updates turned on, but for those who do not, they have to choose to receive the update.

Google added this new feature you can add to your app to force in-app update based on if you want the update immediate or flexible
https://developer.android.com/guide/playcore/in-app-updates/kotlin-java

Related

Is it possible remove temporarily an app from Play Store?

I have published an app in Google Play a few months ago. That app have some downloads and data from users in Console Google. I will release a new version, but while I'm finishing, I want remove it temporarily - keeping all that data and download numbers. Is it possible or when I cancel the publish all data will be deleted?
Please note that you unpublish (and this means just what name says, nothing more) not just APK - you hide all related stuff (app's page in Google Play etc). To end user it looks like the app is gone. For you - it is still in your console, you can edit description, images, see comments, stats or update APKs etc., but unless you publish it again, nobody will see these changes.
https://stackoverflow.com/a/13493065/7303462
You could do that by unpublishing your app. You can re-publish it by installing a newer apk of the app and all the data will remain the same, you'd not loose any of it.
PS: You cannot delete an app from your account. Published and unpublished apps will remain in your account.
Update 2022 :
You can go to "Google play console -> Release -> Setup -> Advanced Settings", but as google says :
Unpublished: New users cannot find and install your app. Existing users can still find it and will receive updates.
Published: New users can find and install your app
I found a solution so that you can restrict the region of your app if you do not want to delete and republish it. This prevents even existing users from finding your app. In the published list of your app, you should keep at least one country, and you can select the country with the lowest downloads.

Android APK Auto Update

I would like to know if this is possible.
Our users download & install APK from Play market the first time,
and afterward while the application detected that a new version is available, it can auto download & install new APK (using the same signature as original one) from our custom server, even if the allow side-loading setting is unchecked in user's device?
Or we must upload the new update APK on Play market again, and let user manually download & install from market?
thanks.
Use the Google Play Store update mechanism. It's the one and only way to deploy updates.
Some time ago Facebook also tried to implement their own update mechanism for their app and the result was Google temporary removing the app from the Play Store because of that.
If the user has installed the app from Play Store then the updates must come from Play Store only. Otherwise there would be signature mismatch problem.
You need to change the "version code" and "version name" and upload new APKs to the Play Store again.
And user's do not need to manually download updates if they have "automatic updates" enabled.
UPDATE
I saw your last comment and just thought to help.
We want to ensure our user always running the latest version of
application.
Yes, I can understand this requirement. The users who have "automatic updates" enabled (most of the users have) will automatically get the latest version of your app.
And those who don't, will get a notification to choose if they want to update now or postpone it later (may be they don't have enough internet data or time to download app app updates now).
The Trick
I can give you a trick. You can use your custom server to check if the user is currently using the latest version of the app or not. So if any user who is using the outdated version opens your app, the app checks to see that from the server and then prompts the user to update the app immediately. You can also take the user directly to the Play Store to update the app. Simple, isn't it?
Hope it helps.
You have to upload the APK to the Play Store again. Depending no the user's settings he will auto-update the app or manually download the update from the store.

Google Play - update an unpublished app for existing users but not new users?

I have an unpublished app on Google Play which I want to update for my existing users, but not let new users download it.
The Google Play documentation seems to be saying that this can be done by simply uploading an updated apk (and not re-publishing the app):
Unpublished Apps
Existing app users will still be able to receive app updates, even if you unpublish your app. If you don't want new users to find and download your app but still want to provide updates to your existing users, set your app to Unpublished in the Developer Console.
https://support.google.com/googleplay/android-developer/answer/113476?hl=en
But it seems unintuitive that an "unpublished" application would work that way. If the documentation is correct, how does Google Play tell the difference between an 'existing' user and a 'new' user?
Just a follow up: pushing an update to the unpublished app does make the update available to existing users only, but the app does not update automatically for these users. They must browse to the app page, where the app will have an "Update" button which can be triggered manually.
(This is just speculation, I'm not affiliated with Google in any way or anything)
The existing user probably has the app associated with the Google account they use to log in to the Play store.
If you look at your own profile in the store, there's a list of all the apps you've ever installed. I'm guessing the update would be available only for people who have your app in their lists, and the app will still be invisible for new users.
Whenever a user that has the app installed wants to update it, he requests an update of the app, it's different from re-installing the app as data from the app (a save from a game, or some saved preferences etc) are kept untouched, google play can easily detect that since it can detect what apps you have installed.

Update url for my appliction transfer the user to the app page but without the update option

i'm suggesting the user to update my app, and transfer him to the specific page on the play store. it work well for users that download the app from the store and really suggest them to update.
But the problem when the user download the app from other place, in this case he will enter the right page in the play store but without "update" option - only "open" and "uninstall"
what can I do in this case?
Thank you all! :P
Most probably it happens because signature of your APK file is different in Google Play and in other place. Google Play allows to update an app only if signature has not been changed.
Signature difference could happen because:
Amazon AppStore changes signature of your APK file
Debug version of your app is always signed with debug singature
Read more about signing Android apps here:
http://developer.android.com/tools/publishing/app-signing.html

How update my own app android?

I want to create a game for android, but this game will have a level. If I put my app in the Android Market how do I update this app after it's already been uploaded?
You have to provide mechanism of saving user's data to a file or database, making user able to continue playing game from the point where he/she was before update. After that when you have a new release of the app signed with the same key and uploaded to the android play store, users will get a notification and will be able to download and update your app. Preinstalled PlayStore app on android devices will complete that task. Every time user starts your app check settings file and setup app's properties for the user for continue playing.
You publish your apk via the Developer Console. You can upload unpublished drafts of your app without disturbing the published version. Once you choose to publish an update, then the Google Play store will offer the update to your existing users. Migrating your user's data is as described by Maxim.
You can sign up for a Google Play publisher account here: https://play.google.com/apps/publish

Categories

Resources