没有任何理由使用谷歌VS GCM苹果的消息推送通知? [英] Is there any reason to use Google GCM vs Apple messaging for push notifications?

查看:354
本文介绍了没有任何理由使用谷歌VS GCM苹果的消息推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌有这个与iOS的整合的谷歌云通讯信息

Google has this Google Cloud Messaging info for integration with iOS

什么是使用谷歌云消息或iOS为同一目的之间的区别?

What is the difference between using Google Cloud Messaging or iOS for the same purpose?

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

Is one more efficient than the other? Is battery or network load different?

推荐答案

谷歌云消息最初是发送通知为Android的平台。他们增加了一个iOS的SDK,但使用其在iOS SDK意味着你同时使用GCM和苹果推送通知服务:

Google Cloud Messaging is originally a platform to send notification for Android. They added an iOS SDK, but using their SDK on iOS means that you are using both GCM and Apple Push notification service:

对于推iOS设备=>谷歌云通讯=>苹果APNS =>设备

Push for iOS device => Google Cloud Messaging => Apple APNS => Device

如果你只开发iOS应用程序时,最好直接使用APNS。如果你已经把所有的基础设施,建立了GCM,那么你可能会有点code与仅支持GCM解决iOS和保存你的Andr​​oid。

If you are only developing an iOS app, it is best to use APNS directly. If you already have all your infrastructure set up for GCM, then you may save you a bit of code by supporting only GCM to address both iOS and Android.

然而,有这样做的任何特定的技术优势。

However there is no specific technical benefit doing so.

这篇关于没有任何理由使用谷歌VS GCM苹果的消息推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆