有没有理由使用Google GCM和Apple消息进行推送通知?

时间:2015-07-27 19:01:55

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

Google有Google Cloud Messaging info for integration with iOS

为同一目的使用Google Cloud Messaging或iOS有什么区别?

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

2 个答案:

答案 0 :(得分:25)

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

推送iOS设备=> Google Cloud Messaging => Apple APNS =>设备

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

但是没有具体的技术优势。

答案 1 :(得分:6)

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