Google Play如何实施自动更新?

时间:2013-03-08 22:51:33

标签: android google-play

我已经看到 Google Play 实现了一个自动更新应用的好工具,他们是如何做到的?

如果它是广播接收器,如何让它听一个网络服务?

由于

2 个答案:

答案 0 :(得分:3)

如何运作
Google Play服务客户端库

自动更新

运行Android 2.2及更新版本且具有Google Play商店应用的设备会自动接收Google Play服务的更新。使用最新版本的Google Play服务增强您的应用,而无需担心用户的Android版本。

http://developer.android.com/google/play-services/index.html

背后的基本理念是检查软件版本,因为它包含唯一密钥和版本号,如果Google发现版本与客户端和服务器版本之间具有相同密钥的差异,则允许应用程序更新

答案 1 :(得分:2)

他们使用Google Cloud Messaging,这是推送通知服务。

http://developer.android.com/google/gcm/index.html