<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PushKit",
  "identifier" : "/documentation/PushKit/PKPushRegistryDelegate/pushRegistry(_:didInvalidatePushTokenFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PushKit"
    ],
    "preciseIdentifier" : "c:objc(pl)PKPushRegistryDelegate(im)pushRegistry:didInvalidatePushTokenForType:"
  },
  "title" : "pushRegistry(_:didInvalidatePushTokenFor:)"
}
-->

# pushRegistry(_:didInvalidatePushTokenFor:)

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

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

## Parameters

`registry`

The [`PKPushRegistry`](/documentation/PushKit/PKPushRegistry) instance responsible for the delegate callback.

`type`

This is a [`PKPushType`](/documentation/PushKit/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)