---
title: "pushRegistry(_:didUpdate:for:)"
framework: pushkit
role: symbol
role_heading: Instance Method
path: "pushkit/pkpushregistrydelegate/pushregistry(_:didupdate:for:)"
---

# pushRegistry(_:didUpdate:for:)

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

## Declaration

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

## Parameters

- `registry`: The doc://com.apple.pushkit/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 doc://com.apple.pushkit/documentation/PushKit/PKPushRegistry/desiredPushTypes property of the push registry.

## Mentioned in

Supporting PushKit Notifications in Your App

## Discussion

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

## See Also

### Responding to Registration Events

- [pushRegistry(_:didInvalidatePushTokenFor:)](pushkit/pkpushregistrydelegate/pushregistry(_:didinvalidatepushtokenfor:).md)
