重置 iOS 应用程序的推送通知设置?
我最初使用下面的代码在沙盒模式下设置我的应用程序,我忘记添加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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我没记错的话,您必须提前一两天并重新启动您的设备。
If I remember correctly you have to move up a day or two AND restart your device.