Contents

pushRegistry(_:didInvalidatePushTokenFor:)

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

Declaration

optional func pushRegistry(_ registry: PKPushRegistry, didInvalidatePushTokenFor type: PKPushType)

Parameters

  • registry:

    The Pkpushregistry instance responsible for the delegate callback.

  • type:

    This is a Pkpushtype constant, which is present in [registry desiredPushTypes].

Discussion

The system calls this method when a previously provided push token is no longer valid for use. No action is necessary on your part to reregister the push type. Instead, use this method to notify your server not to send push notifications using the matching push token.

See Also

Responding to Registration Events