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

func pushRegistry(PKPushRegistry, didUpdate: PKPushCredentials, for: PKPushType)

Notifies the delegate when the push credentials have been updated.

Required.

func pushRegistry(PKPushRegistry, didInvalidatePushTokenFor: PKPushType)

Notifies the delegate that a push token has been invalidated.

Handling an Incoming Notification

Deprecated Methods

func pushRegistry(PKPushRegistry, didReceiveIncomingPushWith: PKPushPayload, for: PKPushType)

Notifies the delegate that a remote push has been received.

Deprecated

Relationships

Inherits From

See Also

Setup

class PKPushRegistry

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

class PKPushCredentials

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