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

后端 未结 8 685
梦毁少年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:46

    From iOS 13 and above you need to do the whole changing-date-reset thing, as pointed out by Eran.

    From iOS 12 and below, uninstalling the app is enough. This also works on simulator, you wont get token though since simulator does not support push notifications.

提交回复
热议问题