---
title: "didReceiveRemoteNotification(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkextensiondelegate/didreceiveremotenotification(_:)"
---

# didReceiveRemoteNotification(_:)

Tells the delegate that a remote notification arrived.

## Declaration

```swift
optional func didReceiveRemoteNotification(_ userInfo: [AnyHashable : Any])
```

## Parameters

- `userInfo`: The remote notification dictionary. The contents of the dictionary correspond to the contents of the notification payload and are organized in the same way. For information about the contents of the remote notification payload, see https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/index.html#//apple_ref/doc/uid/TP40008194.

## Discussion

Discussion If a remote notification arrives while your app is active, WatchKit calls this method to deliver the notification payload. Use this method to respond to the notification. For example, you might use this method to update your app’s interface or display a message to the user. WatchKit may call this method multiple times. If a new remote notification with the same category arrives while your app is active, WatchKit calls the method again with the new payload.

## See Also

### Deprecated Methods

- [didReceive(_:)](watchkit/wkextensiondelegate/didreceive(_:).md)
- [handleAction(withIdentifier:forRemoteNotification:)](watchkit/wkextensiondelegate/handleaction(withidentifier:forremotenotification:).md)
- [handleAction(withIdentifier:forRemoteNotification:withResponseInfo:)](watchkit/wkextensiondelegate/handleaction(withidentifier:forremotenotification:withresponseinfo:).md)
- [handleAction(withIdentifier:for:)](watchkit/wkextensiondelegate/handleaction(withidentifier:for:).md)
- [handleAction(withIdentifier:for:withResponseInfo:)](watchkit/wkextensiondelegate/handleaction(withidentifier:for:withresponseinfo:).md)
