APNS PHP 推送通知问题
我可以在服务器上成功运行 APNS。我收到此消息:
Fri, 03 Jun 2011 10:01:41 +0200
ApnsPHP[29402]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Connected to ssl://gateway.sandbox.push.apple.com:2195. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Sending messages queue, run #1: 1 message(s) left in queue. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes. Fri, 03 Jun 2011 10:01:43 +0200
ApnsPHP[29402]: INFO: Disconnected.
但是当我在设备上运行应用程序时,我没有收到推送通知。我已经编写了所有代码,还创建了 entitlement.plist 文件。
谁能帮我解决这个问题吗?也没有调试错误。
非常感谢任何帮助。
谢谢你,
安克斯
I can run the APNS successfully on server. I get this message:
Fri, 03 Jun 2011 10:01:41 +0200
ApnsPHP[29402]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Connected to ssl://gateway.sandbox.push.apple.com:2195. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Sending messages queue, run #1: 1 message(s) left in queue. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes. Fri, 03 Jun 2011 10:01:43 +0200
ApnsPHP[29402]: INFO: Disconnected.
But when i run the application on device, i don't get push notification. I have written all the code and also created entitlement.plist
file.
Can anyone please help me with this?? There is no debugging error as well.
Any help is greatly appreciated.
Thank you,
Anks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,您失踪了,或者您的设备的应用程序令牌无效。
It sounds to me you are missing or you have an invalid app-token for your device.