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

# pushRegistry(_:didReceiveIncomingPushWith:for:)

Notifies the delegate that a remote push has been received.

## Declaration

```swift
optional func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType)
```

## Parameters

- `registry`: The doc://com.apple.pushkit/documentation/PushKit/PKPushRegistry instance responsible for the delegate callback.
- `payload`: The push payload sent by a developer via APNS server API.
- `type`: This is a doc://com.apple.pushkit/documentation/PushKit/PKPushType constant, which is present in [registry desiredPushTypes].

## Discussion

Discussion This method is invoked when a push notification has been received for the specified push type.
