[英]What is difference between GCM for iOS and push notification service provided by Apple
我正在阅读有关 iOS 的 Apple 推送通知。 在搜索时,我发现 Google 还为 iOS 设备GCM for iOS提供 GCM 服务。 我有以下疑问-
Google Cloud Messaging 最初是为 Android 发送通知的平台。 他们添加了一个 iOS SDK,但在 iOS 上使用他们的 SDK 意味着您同时使用 GCM 和 Apple Push 通知服务:
推送 iOS 设备 => Google Cloud Messaging => Apple APNS => 设备
如果你只是开发iOS应用,最好直接使用APNS。 如果您已经为 GCM 设置了所有基础设施,那么您可以通过仅支持 GCM 来处理 iOS 和 Android 来节省一些代码。
有关更多详细信息,您可以使用此 Google 官方文档: https : //developers.google.com/cloud-messaging/ios/client
下面的链接是 Google Cloud Messaging IOs Quickstart 应用程序,它演示了如何将 IOS 应用程序连接到 GCM 以及如何接收消息: https : //github.com/googlesamples/google-services/tree/master/ios/gcm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.