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:

Tells the delegate that the system updated the credentials for the specified type of push notification.

Required.

- pushRegistry:didInvalidatePushTokenForType:

Tells the delegate that the system invalidated the push token for the specified type.

Handling an Incoming Notification

- pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:

Tells the delegate that a remote push notification arrived.

Deprecated Methods

- pushRegistry:didReceiveIncomingPushWithPayload:forType:

Notifies the delegate that a remote push has been received.

Deprecated

Relationships

Inherits From

See Also

Registration

Supporting PushKit Notifications in Your App

Declare the types of PushKit notifications your app supports and configure objects to respond to them.

PKPushRegistry

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

PKPushCredentials

An object that encapsulates the device token you use to deliver push notifications to your app.