【发布时间】:2017-06-21 06:42:59
【问题描述】:
我目前正在使用 Google Play 服务以及它的 GCM 功能来接收来自我的应用服务器的通知。我知道较新的 Google Play 服务会获得更新的 API,并使该功能更加高效。
旧的实验观察:GCM notifies not reaching device having google play service 6.5.99
GCM 运行所需的最低 Google Play 服务是多少?是“Google Play Services 3.1”(https://android-developers.googleblog.com/2013/05/android-at-google-io-2013-keynote-wrapup.html)吗?
随着 Google Play 服务的更新频率越来越高,我是否也需要更新 Google Play 服务版本并将我的应用发布到 Play 商店?
-
即使没有更新到最新版本,我如何使 GCM 正常工作,还是应该通过打开 更新对话框来强制用户更新?
例如:旧
compile 'com.google.android.gms:play-services-gcm:3.1.0到
compile 'com.google.android.gms:play-services-gcm:11.0.0
PS:我还没有转到 FCM。 FCM的情况是否相同?我是否需要通过在 gradle 中更新最新的 FCM 版本来经常更新我的应用程序?即:
compile 'com.google.firebase:firebase-messaging:11.0.1'
【问题讨论】:
标签: android google-cloud-messaging google-play-services firebase-cloud-messaging