Reset Push Notification settings for alert

2020-04-12 07:32发布

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 notification sometimes only. Is that an issue from my side?.

In the case that once I did "Use" action and after some days I deleted app from my device. Will the alert for allowing push notification be asked the next I download it from AppStore.

Issue is like once I give "Use/Cancel", and deleted the app from device, on next download it is not asking whether you interested use push notification or not.

Please help.

Thank you in advance

3条回答
够拽才男人
2楼-- · 2020-04-12 07:44

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.

查看更多
爷、活的狠高调
3楼-- · 2020-04-12 07:58

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

查看更多
Summer. ? 凉城
4楼-- · 2020-04-12 08:01

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.

查看更多
登录 后发表回答