9

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.

halfer
  • 19,824
  • 17
  • 99
  • 186
Aman Verma
  • 3,155
  • 7
  • 30
  • 60

3 Answers3

9

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

Its a new PlayStore feature introduced in I/O 2019

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://stackoverflow.com/a/9878292/7767143

Tristan O'Keefe
  • 371
  • 2
  • 4
  • 14
  • 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. – Aman Verma May 02 '19 at 13:55
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

Ryan
  • 1
  • 1