Do I need to register to APNs to use GCM Push notifications in iOS?

℡╲_俬逩灬. 提交于 2019-12-22 13:53:52

问题


I am building a hybrid APP with cordova. I am using the phonegap-plugin-push to register to GCM so i can push notifications to Android.

My question is if i need the APNs certificates to be able to use GCM in iOS, or if with the plugin alone and the registration to GCM is enough?


回答1:


Short answer, Yes. You must then upload your APNs Certificate to GCM. Check out this Route 85 video about Sending Notifications on iOS through GCM.

Other useful links for you:

  • https://developers.google.com/cloud-messaging/ios/start

  • https://developers.google.com/cloud-messaging/ios/client

  • https://developers.google.com/cloud-messaging/ios/certs

Possibly similar post: iOS support for Google Cloud Messaging



来源:https://stackoverflow.com/questions/38503604/do-i-need-to-register-to-apns-to-use-gcm-push-notifications-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!