Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created September 7, 2012 07:35
Show Gist options
  • Save TonnyXu/3664124 to your computer and use it in GitHub Desktop.
Save TonnyXu/3664124 to your computer and use it in GitHub Desktop.
Reenable Push Notification when user disabled it on the first time confirmation alert is shown

Q:Can we reenable Push Notification after we disabled it at the first time?

A: YES, we can

Q: How?

  1. Delete the app.
  2. Wait for at least one day.

See reference:

  1. Stackoverflow
  2. Technical Note TN2265: Troubleshooting Push Notifications

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 setting the system clock forward a day or more, turning the device off completely, then turning the device back on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment