APNS:没有收到任何关于 registerForRemoteNotificationTypes 的反馈:既没有 +/-

发布于 2024-08-06 01:55:07 字数 337 浏览 3 评论 0原文

我一直在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云醉月微眠 2024-08-13 01:55:07

已解决:
必须为我的 WiFi AP 的防火墙打开传出端口 5223。

SOLVED:
The outgoing port 5223 had to be opened for the Firewall of my WiFi AP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文