Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 857
Aman Verma Avatar asked May 02 '19 13:05

Aman Verma


2 Answers

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

Its a new PlayStore feature introduced in I/O 2019

like image 75
Shakil Ahmed Shaj Avatar answered Jan 03 '23 04:01

Shakil Ahmed Shaj


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

like image 41
SaskatoonDiver Avatar answered Jan 03 '23 06:01

SaskatoonDiver