是否有任何理由使用 Google GCM 与 Apple 消息传递推送通知? [英] Is there any reason to use Google GCM vs Apple messaging for push notifications?

查看:30
本文介绍了是否有任何理由使用 Google GCM 与 Apple 消息传递推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 拥有此 Google Cloud Messaging 信息以与 iOS 集成

Google has this Google Cloud Messaging info for integration with iOS

出于相同目的而使用 Google Cloud Messaging 或 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?

推荐答案

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

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 设备 => Google Cloud Messaging => Apple APNS => 设备

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

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

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.

这篇关于是否有任何理由使用 Google GCM 与 Apple 消息传递推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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