Instance Method

application:didFailToRegisterForRemoteNotificationsWithError:

Sent to the delegate when Apple Push Service cannot successfully complete the registration process.

Declaration

- (void)application:(NSApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;

Parameters

application

The application that initiated the remote-notification registration process.

error

An NSError object that encapsulates information why registration did not succeed. The application can display this information to the user.

Discussion

The delegate receives this message after the registerForRemoteNotificationTypes: method of NSApplication is invoked and there is an error in the registration process.

For more information about how to implement push notifications in your application, see Local and Remote Notification Programming Guide.

See Also

Handling Push Notifications

- application:didRegisterForRemoteNotificationsWithDeviceToken:

Sent to the delegate when Apple Push Services successfully completes the registration process.

- application:didReceiveRemoteNotification:

Sent to the delegate when a running application receives a remote notification.