重置 iOS 应用程序的推送通知设置?

发布于 2024-12-03 15:43:53 字数 635 浏览 10 评论 0原文

我最初使用下面的代码在沙盒模式下设置我的应用程序,我忘记添加UIRemoteNotificationTypeAlert

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
 (UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound)];

我已经通过将时钟向前移动一天来重置应用程序,如此处http://developer.apple.com/library/ios/#technotes/tn2265/_index.html,但是当我尝试添加 UIRemoteNotificationTypeAlert 时,它仍然仅启动徽章声音警报,我无法添加警报......

我什至尝试了新的应用程序ID和一个新的配置文件,但问题仍然存在,我该怎么解决这个问题?

I initially setup my app in sandbox mode using the code below, I forgot to add UIRemoteNotificationTypeAlert

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
 (UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound)];

I have reset the app by moving the clock a day forward, as mentioned here http://developer.apple.com/library/ios/#technotes/tn2265/_index.html, but when I try to add the UIRemoteNotificationTypeAlert it still only initiaites the badge and sound alert, I can't add the alert.....

I've even tried a new app id and a new provisioning profile, but the problem persists, what can i do to fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

别靠近我心 2024-12-10 15:43:53

如果我没记错的话,您必须提前一两天重新启动您的设备。

If I remember correctly you have to move up a day or two AND restart your device.

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