<!--
{
  "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(_:didUpdate:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PushKit"
    ],
    "preciseIdentifier" : "c:objc(pl)PKPushRegistryDelegate(im)pushRegistry:didUpdatePushCredentials:forType:"
  },
  "title" : "pushRegistry(_:didUpdate:for:)"
}
-->

# pushRegistry(_:didUpdate:for:)

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

```
func pushRegistry(_ registry: PKPushRegistry, didUpdate pushCredentials: PKPushCredentials, for type: PKPushType)
```

## Parameters

`registry`

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

`pushCredentials`

The push credentials that can be used to send pushes to the device for the specified push type.

`type`

One of the requested notification types. This type is present in the [`desiredPushTypes`](/documentation/PushKit/PKPushRegistry/desiredPushTypes) property of the push registry.

## Discussion

The system calls this method when it receives new credentials (including a push token) for the specified push type.

---

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)