【问题标题】:android using gcm without google play service install?android 使用 gcm 没有安装谷歌播放服务?
【发布时间】:2015-08-08 07:37:04
【问题描述】:

我在使用 Android GCM 时没有在我的设备上安装 Google Play 服务? 使用 GCM 发送推送通知而不安装 Google Play 服务的方式是什么?

【问题讨论】:

    标签: android google-cloud-messaging


    【解决方案1】:

    您可以使用不需要安装 googlePlayService 的旧 GCM,但它已被弃用,请参阅 this link

    【讨论】:

      【解决方案2】:

      这是不可能的 - GCM requires Google Play 服务正常运行。

      要编写您的客户端应用程序,请使用 GoogleCloudMessaging API。要使用此 API,您必须将项目设置为使用 Google Play 服务 SDK,如设置 Google Play 服务 SDK 中所述。

      Pushy (https://pushy.me/) 是一个独立、可靠的推送通知网关,可以替代 GCM,无需 Google 帐户和 Google Play 服务。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-08
        • 2016-01-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多