APNS:没有收到任何关于 registerForRemoteNotificationTypes 的反馈:既没有 +/-
我一直在尝试使用 iPhone APNS 文档中的默认代码来使用 registerForRemoteNotificationTypes() 生成设备令牌,但没有成功。 didRegisterForRemoteNotificationsWithDeviceToken 或 didFailToRegisterForRemoteNotificationsWithError 都不会被调用。我在这两种方法中都放置了 UIAlert - 两者都没有出现。
我的 iPhone 正在使用 Wi/Fi 使用 DHCP 访问 APNS。(并且我能够浏览) 是否需要进行任何其他设置才能生成设备令牌?
有人可以发布可用于生成设备令牌的工作代码吗?
I have been trying to use the default code in the iPhone APNS documentation to generate a device token using registerForRemoteNotificationTypes() but without succes.
Neither the didRegisterForRemoteNotificationsWithDeviceToken or the didFailToRegisterForRemoteNotificationsWithError is called. I had placed a UIAlert in both these methods- both did not appear.
My iPhone is acceesing APNS using Wi/Fi using DHCP.(& am able to browse )
Is there any other setting that needs to to be done to genrate a device token?
can someone post a working code which can be used to generate device token?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决:
必须为我的 WiFi AP 的防火墙打开传出端口 5223。
SOLVED:
The outgoing port 5223 had to be opened for the Firewall of my WiFi AP.