重现安装程序弹出注册通知的alert框

来源:互联网 发布:python 画热力图 编辑:程序博客网 时间:2024/06/08 12:15

在测试应用程序远程通知的时候 只有第一次安装程序再会弹出注册通知的alert框

要想再次弹出只有卸载程序 再等至少一天  
Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day
如果想快递重现弹出注册通知时的弹出框
可以通知以下办法
1,删除APP
2,完全关闭设置再开机
3,设置时间比现在早一天或者更多
4,完全关闭设置再开机

Resetting the Push Notifications Permissions Alert on iOS

The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.

If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You can achieve the latter without actually waiting a day by following these steps:

  1. Delete your app from the device.

  2. Turn the device off completely and turn it back on.

  3. Go to Settings > General > Date & Time and set the date ahead a day or more.

  4. Turn the device off completely again and turn it back on.


//下面是 苹果官方 Push Notifications 问题解答

Troubleshooting Push Notifications

https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG22


0 0