简体   繁体   English

iOS:无法使用cordova插件phonegap-plugin-push设置GCM

[英]IOS : Unable to setup GCM using cordova plugin phonegap-plugin-push

I have set provisioning profiles, certificates and cocoapods by following: 我通过以下方式设置了配置文件,证书和coapapod:

https://developers.google.com/cloud-messaging/ios/client link. https://developers.google.com/cloud-messaging/ios/client链接。

I do not know whether I have to register in APNS through cocoapod or cordova plugin and how to do it. 我不知道我是否必须通过cocoapod或cordova插件在APNS中注册以及如何进行。 GCM is not registering through ios device. GCM未通过ios设备注册。 I would prefer to not use native code, I am new to both xcode and cordova. 我宁愿不使用本机代码,对于xcode和cordova来说我都是新手。

cocoapod is only the dependency management tool for Objective-C and Swift. cocoapod只是Objective-C和Swift的依赖项管理工具。 So my guess is that you'll have to register it on a Cordova plugin. 因此,我的猜测是您必须在Cordova插件上进行注册。 I think this pubnub tutorial will be beneficial to on how to set it up using phonegap/cordova. 我认为此pubnub教程将对如何使用phonegap / cordova进行设置有所帮助。

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM