Sent to the delegate when Apple Push Notification service cannot successfully complete the registration process.
- iOS 3.0+
- tvOS 9.0+
The app object that initiated the remote-notification registration process.
NSErrorobject that encapsulates information why registration did not succeed. The app can choose to display this information to the user.
UIKit calls this method if it was unable to register your app with APNs or if your app is not properly configured for remote notifications. During development, make sure your app has the proper entitlements and that its App ID is configured to support push notifications. You might use your implementation of this method to make a note of the failed registration so that you can try again later.
For more information about how to set up and send remote notifications in your app, see Setting Up a Remote Notification Server.