简体   繁体   English

iPhone中的推送通知问题

[英]Push Notifications Issue in iPhone

OKay..so I followed this tutorial on RayWenderlich.com about setting up push notifications in an app. 好的,所以我遵循了RayWenderlich.com上的本教程,内容是在应用程序中设置推送通知。 It worked fine for the 1st week or so. 第一周左右,它工作正常。 The notifications were delivered and all was cool until today, when notifications stopped working. 通知已传递,直到今天通知停止工作时,一切都很酷。 I repeated the steps mentioned on the site by creating a new SSL certificate, a new provisioning profile, etc but it still doesn't work. 我通过创建新的SSL证书,新的配置文件等重复了网站上提到的步骤,但是仍然无法正常工作。 The Settings and all in my iPhone are set to receive notifications in the App. 我的iPhone中的“设置”和“全部”设置为在应用程序中接收通知。

I tried sending myself notifications from other services like FB, twitter, etc and they're all working. 我尝试通过其他服务(例如FB,twitter等)向自己发送通知,但它们都在起作用。 Can anyone temme what might not be working. 任何人都可以阻止可能无法正常工作的项目。

Oh and btw, my PHP code shows no error. 哦,顺便说一句,我的PHP代码没有显示错误。 In fact, it says that the message was successfully delivered. 实际上,它表示邮件已成功传递。

I'm running out of time and help would be much appreciated. 我的时间不多了,我们将不胜感激。 Thanks. 谢谢。

device token may be changed. 设备令牌可能会更改。 update device token and retry. 更新设备令牌并重试。

Make sure you are using the correct mode ie you have enabled the push notification in development mode and install the app with the same provision profile and keep the developmental .pem file on server. 确保您使用的是正确的模式,即您已在开发模式下启用了推送通知,并使用相同的配置文件安装应用程序,并将开发性.pem文件保留在服务器上。 If you change from development to release you need to change the .pem file from server and also remove sandbox while sending the push notification in live version. 如果从开发更改为发行版,则需要从服务器更改.pem文件,并在以实时版本发送推送通知时删除沙箱。

Keep in mind that Apple do not guarantee that message will be delivered 100%. 请记住,苹果公司不保证消息将100%传递。

Next time, don't worry so much. 下次不用那么担心。

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

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