简体   繁体   中英

How to enable my android app to auto check for updates in the android market?

I have my android app already installed on devices and now I want that if I have released a new version of that app in the play store market then the app automatically detects that there is a new version available and notify the user that they can update the app. How can I do that?

您可以创建一个带有 json 响应的 api 来检查版本,当更新可用时只需重定向到 google play 商店

You do not have to set this property in the application. You set this property in the Google Play in your application section like this:

在此处输入图片说明

这不是官方的 Api 但它正在工作,当应用程序在 Playstore 上有新版本时,谷歌会自动发出通知,但是如果你想强制用户更新应用程序,那么你可以实现这个

The only case where you should be doing this is when your app uses a not packaged service (hosted on a server, in another app, etc).

This service should return an adequate response if the client (your app) is outdated. If you recieve such a response, then you can redirect to the play store.


If you don't use such a service and still want to do this, then check the android market api .

But really, you shouldn't. The Play store already notifes the user if there is an update. No need to do that again, you will only annoy users.

when you upload your application's update version on google play store . Google play store automatically send notification to users for update version of your application.So no need to send user a custom notification for update version. So only set this functionality on your play store account

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM