---
title: "sendResponse(_:)"
framework: accessorynotifications
role: symbol
role_heading: Instance Method
path: "accessorynotifications/notificationsforwarding/accessorynotificationssession/sendresponse(_:)"
---

# sendResponse(_:)

Sends a notification response from the accessory to the system.

## Declaration

```swift
func sendResponse(_ response: NotificationResponse) async throws
```

## Parameters

- `response`: The notification response from the accessory.

## Discussion

Discussion After receiving a message through messageHandler(_:), parse the accessory’s response data and create a NotificationResponse instance. Call this method to deliver the response to the system for handling. note: The response data arrives decrypted in messageHandler(_:). Your extension needs to parse the data according to the format your accessory uses and then extract the notification identifiers and action details.
