Protocol

PKPushRegistryDelegate

The methods that you use to handle incoming PushKit notifications and registration events.

Declaration

@protocol PKPushRegistryDelegate

Overview

Implement the methods of this protocol in an object of your app and assign that object to the delegate property of your PKPushRegistry object. Use the methods of this protocol to process incoming notifications and to react to token registration and invalidation.

Topics

Responding to Registration Events

- pushRegistry:didUpdatePushCredentials:forType:

Notifies the delegate when the push credentials have been updated.

Required.

- pushRegistry:didInvalidatePushTokenForType:

Notifies the delegate that a push token has been invalidated.

Handling an Incoming Notification

- pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:

Notifies the delegate that a remote push has been received.

Deprecated Methods

- pushRegistry:didReceiveIncomingPushWithPayload:forType:

Notifies the delegate that a remote push has been received.

Deprecated

Relationships

Inherits From

See Also

Setup

PKPushRegistry

An object that requests the delivery and handles the receipt of PushKit notifications.

PKPushCredentials

An object that encapsulates the push token and push type for an app.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software