Show app update message to android users when they opened the app

时间:2016-12-09 12:44:21

标签: android google-play

Is there any way that I can indicate my android app users to update their app in PlayStore. I haven't written any code to "check version number and show an app update message", in my previous app. What I have known so far that in this situation some solutions could be, like:

  1. Play store will fix this issue(by sending push notification) after a new version is updated.
  2. I can send push notifications to the app users to inform them to update their apps.

I am new to android app development. I know that this question is not making any sense because the codes are already compiled and I am not be able to do any edit to that code. The app communicate with the server in Json data format. But I am not able to send that "app update" message to the app by using one of the array keys, from server side. If I do, the app gets crash.

So, I am guessing if there any way that I can inform to those app users to update the app (may be via playstore), when they opened that app, in a dialogue box/something, with my custom message and it is not via the push notification message.

Please suggest me the solutions other than those I have mentioned above. If it is impossible, then comment it also. I need to confirm it that what I have known so far is correct.

1 个答案:

答案 0 :(得分:3)

当新版本的apk可用时,Play商店首先不会向用户显示任何通知。

此外,您还必须上传一个新的apk,其中包含用于检查应用中更新的代码,然后才能使用。

要显示更新对话框,您可以使用以下库

Version Checker Library

使用此功能时,请在您的应用级build.gradle文件中添加此文件

compile 'com.robohorse.gpversionchecker:gpversionchecker:1.0.8'

并在您的启动器活动中添加此

new GPVersionChecker.Builder(this).create();