【问题标题】:Google Cloud Messagging New Version With API 8带有 API 8 的 Google Cloud Messaging 新版本
【发布时间】:2013-11-07 16:48:11
【问题描述】:

我不明白是否可以通过 API 8 使用新的 Google Cloud Messagging。我只找到了以前 GCM 库的示例。在Developer Android 中我没有找到对此的解释。

【问题讨论】:

    标签: android push-notification google-cloud-messaging google-play-services


    【解决方案1】:

    这是可能的。有些设备存在问题,但 Google 正在努力解决这些问题。 我的设备具有 API 8,并且新的 Google Cloud Messaging 可以正常工作。

    您也可以参考this answer,其中包含一些相关的讨论。基本上,它建议仅在新的 Google Cloud Messaging 不起作用时回退到 Froyo/Gingerbread 设备上已弃用的库。

    【讨论】:

    • 感谢您的回答,请问是否有专门针对新 Google Cloud Messagging 的好教程?
    • @v1sc3rr4k 不客气。为什么不用官方Demo App?这就是客户端所需要的一切。对于服务器端,如果您继续使用 GCM HTTP 接口,则无需更改任何内容。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-12-19
    • 1970-01-01
    • 2018-10-18
    • 2016-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多