简体   繁体   English

如何在我的iPhone应用程序中从服务器端显示推送通知

[英]How to show Push Notification from server side in my iPhone application

I am trying to implement push notification in my iPhone application and some short I am successful but I am getting this error: 我试图在我的iPhone应用程序中实现推送通知,虽然有些成功,但是出现了以下错误:

Domain=NSCocoaErrorDomain Code=3000 'no valid' aps- environment' entitlement string found for application UserInfor=0x170140 {NSLOcalizedDescription=no valid 'aps- environment' entitlement string found for application}` Domain = NSCocoaErrorDomain代码= 3000为应用程序找到了“无效的'aps-环境'授权字符串UserInfor = 0x170140 {NSLOcalizedDescription =没有为应用程序找到的有效'aps-环境'授权字符串}`

Please help me how can I connect to my web-service and how to resolve this error. 请帮助我如何连接到我的Web服务以及如何解决此错误。

Please help me how can I resolve this error? 请帮助我如何解决此错误? Thank you. 谢谢。 Is there any video just share with me. 有视频可以跟我分享吗? Thank ja. 谢谢ja

You have to create a certificate for this, read this tutorial http://www.xcode-tutorials.com/programming-apple-push-notification-services-apns/ 您必须为此创建证书,请阅读本教程http://www.xcode-tutorials.com/programming-apple-push-notification-services-apns/

Also, push will not work in the simulator 此外,推将无法在模拟器中使用

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

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