Reset Push Notification settings for alert

前端 未结 3 1165
傲寒
傲寒 2021-01-20 10:58

I have developed an app that enabled push notification. It is available in AppStore. After installing the application on my device it shows Alert for enabling push notificat

相关标签:
3条回答
  • 2021-01-20 11:25

    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.

    for reference: https://developer.apple.com/library/ios/technotes/tn2265/_index.html

    0 讨论(0)
  • 2021-01-20 11:39

    See the Apple technical note TN2265. In section "Resetting the Push Notifications Permissions Alert on iOS" they explain how to reset the permission dialog on iOS. However many developers complain that the procedure doesn't work. See my response to a similar question for more details.

    0 讨论(0)
  • 2021-01-20 11:39

    It seems like in IOS 10 and development environment

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>aps-environment</key>
        <string>development</string>
    </dict>
    </plist>
    

    is enough to uninstall the app and rerun it and the push notification permission alert is shown on every ne install.

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