I have published my native android application on Google play store. I want to notify users by showing a popup whenever a new version of application is available on Google play store.
I can check the current running version of my app by using the below code:
String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
This versionName returns the running app's version name, but I want to fetch the version which is currently available on Play store, so that I can check whether the current running app's version is less that that of Google play store's version, I will show a popup to users for upgrading the application.
How can I get the version of app available on Google play store.
Thanks in advanced for your help.