Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="https://developer.apple.com/library/content/technotes/tn2265/_index.html" rel="nofollow noreferrer">Technical Note TN2265: Troubleshooting Push Notifications</a></p> <blockquote> <p>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.</p> <p>If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. <strong>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.</strong></p> </blockquote> <p><strong>Update:</strong> As noted in the comments below, this solution stopped working since iOS 5.1. I would encourage filing a bug with Apple so they can update their documentation. The current solution seems to be resetting the device's content and settings.</p> <p><strong>Update:</strong> The tech note has been updated with new steps that work correctly as of iOS 7.</p> <blockquote> <ol> <li>Delete your app from the device.</li> <li>Turn the device off completely and turn it back on.</li> <li>Go to Settings > General > Date &amp; Time and set the date ahead a day or more.</li> <li>Turn the device off completely again and turn it back on.</li> </ol> </blockquote> <hr> <p><strong>UPDATE as of iOS 9</strong></p> <p>Simply deleting and reinstalling the app will reset the notification status to <code>notDetermined</code> (meaning prompts will appear).</p> <p>Thanks to the answer by Gomfucius below: <a href="https://stackoverflow.com/a/33247900/704803">https://stackoverflow.com/a/33247900/704803</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload