【发布时间】:2013-11-07 16:48:11
【问题描述】:
我不明白是否可以通过 API 8 使用新的 Google Cloud Messagging。我只找到了以前 GCM 库的示例。在Developer Android 中我没有找到对此的解释。
【问题讨论】:
标签: android push-notification google-cloud-messaging google-play-services
我不明白是否可以通过 API 8 使用新的 Google Cloud Messagging。我只找到了以前 GCM 库的示例。在Developer Android 中我没有找到对此的解释。
【问题讨论】:
标签: android push-notification google-cloud-messaging google-play-services
这是可能的。有些设备存在问题,但 Google 正在努力解决这些问题。 我的设备具有 API 8,并且新的 Google Cloud Messaging 可以正常工作。
您也可以参考this answer,其中包含一些相关的讨论。基本上,它建议仅在新的 Google Cloud Messaging 不起作用时回退到 Froyo/Gingerbread 设备上已弃用的库。
【讨论】: