Is there any reason to use Google GCM vs Apple messaging for push notifications?

后端 未结 2 1940
遇见更好的自我
遇见更好的自我 2021-02-04 04:50

Google has this Google Cloud Messaging info for integration with iOS

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

Is

相关标签:
2条回答
  • 2021-02-04 05:14

    In addition to the other answer, GCM supports upstream sending (sending messages from the client to the server), which APNS does not.

    0 讨论(0)
  • 2021-02-04 05:19

    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:

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

    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.

    0 讨论(0)
提交回复
热议问题