How to get back “Allow Push Notifications” dialog after it was dismissed once?

后端 未结 8 664
梦毁少年i
梦毁少年i 2020-12-04 12:31

I am building an app that is heavily relies on APN. Upon the very first start of my app, iOS asks if this app is allowed to use APN (as a result of registerForRemoteNo

相关标签:
8条回答
  • 2020-12-04 12:54

    If you're just testing that the Push Notifications prompt appears correctly, use the simulator. All you need to do is uninstall the app and reinstall, and the prompt will appear again when you try to register for push notifications.

    0 讨论(0)
  • 2020-12-04 13:01

    On iOS 9.x, you can get the prompt every time you delete the app and reinstall it. This is true for both AppStore production downloads and adhoc mode. The device token will be unique each time.

    @chengsam verified this is true in iOS 10 as well. @WongWray verified this is true in iOS 11 as well.

    0 讨论(0)
提交回复
热议问题