How to prompt user to update the Application, and when the user clicks on update it should update in background
Asked Answered
D

3

10

Today I opened Paytm, and found the dialog attached below -

This is the update App Dialog.

Then I clicked the update button and the dialog dismissed and the App starts updating in the background as I checked in the Google play store.

What intent could result in this kind of functionality?

Or does Google provide their own VersionAPI kind of thing where I can make a intent to update the App silently, of course after user authorisation?

I have been sending push notifications to the user which I don't feel is effective than this method.

Dita answered 2/5, 2019 at 13:30 Comment(5)
They announced some stuff for this at Google I|O this week. The Paytm may have received a developer preview that they used.Pamulapan
Thanks. I will surely look into Google I/O '19.Dita
Found this blog, techcrunch.com/2019/05/07/…Dita
did you implement that feature.Abettor
Yes, I have and it's working perfectly fine. If you are worried about how to test this feature then you can run the release app with the version lower than that of the app that is on the PlayStore. after some time you can see this dialog.Dita
A
10

Follow This Link and as shown in picture enter image description here

Its a new PlayStore feature introduced in I/O 2019

Anthracene answered 15/5, 2019 at 18:34 Comment(0)
H
4

The Play Store handles the update dialog when a new update is pushed to the store. Just ensure you update the APK with a higher version code. Happily there is no need for you to inform the user manually.

see: How to put an update notification for your android app then the users will be directed to Google Playstore?

https://mcmap.net/q/320606/-how-to-notify-users-about-an-android-app-update

Hepatitis answered 2/5, 2019 at 13:42 Comment(1)
But the above dialog is what I want to achieve, I don't think this is by default we have to implement something. Since there is the download size mentioned also.Dita
D
0

Are you making your app to check for new updates? If not Play Store should handle the update for you if set to Auto Update.

You may refer to this SO post: Programatically trigger app update from google play

Daguerre answered 16/5, 2019 at 21:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.