What return code is returned by APNS when a user indicates they no longer wish to receive push notifications

For our app if the user initially accepts receiving push notifications and then they indicate at some future time they no longer wish to receive push notifications:

  1. Will APNS return an error code on the next push notification indicating the user no longer wishes to receive push notifications for this app.
  2. If so, do we need to take action to stop sending push notifications?
  3. Can we always register a user for push notifications regardless of whether they indicate they wish to receive push notifications and just count on the device to filter what the user has not consented to receive or has removed consent.

Thank you Bryan

A couple of follow on questions:

  1. How can we tell if a user has opted in for remote notifications?
  2. Is there anyway for an application to be notified if a user changes their opt in / opt out status for remote notifications?

Thank you Bryan

What return code is returned by APNS when a user indicates they no longer wish to receive push notifications
 
 
Q