【问题标题】:Is there any reason to use Google GCM vs Apple messaging for push notifications?是否有任何理由使用 Google GCM 与 Apple 消息传递来推送通知?
【发布时间】:2015-10-18 02:49:13
【问题描述】:

谷歌有这个Google Cloud Messaging info for integration with iOS

将 Google Cloud Messaging 或 iOS 用于相同目的有什么区别?

一种比另一种更有效吗?电池负载或网络负载不同吗?

【问题讨论】:

    标签: android ios push-notification apple-push-notifications google-cloud-messaging


    【解决方案1】:

    除了其他答案,GCM 支持上游发送(从客户端向服务器发送消息),而 APNS 不支持。

    【讨论】:

    • GCM 客户端-服务器通信的这一功能是否可以在使用 APNS 的 iOS 设备上运行?
    • @LamonteCristo:是的
    【解决方案2】:

    Google Cloud Messaging 最初是一个为 Android 发送通知的平台。他们添加了一个 iOS SDK,但在 iOS 上使用他们的 SDK 意味着您同时使用 GCM 和 Apple Push 通知服务:

    Push for iOS 设备 => Google Cloud Messaging => Apple APNS => 设备

    如果你只是开发一个iOS应用,最好直接使用APNS。如果您已经为 GCM 设置了所有基础架构,那么您可以通过仅支持 GCM 来处理 iOS 和 Android 来节省一些代码。

    但是这样做并没有特定的技术优势。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-06
      • 1970-01-01
      • 2016-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-27
      相关资源
      最近更新 更多