<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/sendResponse(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0B10ForwardingC0aB7SessionP12sendResponseyyAA012NotificationF0VYaKF"
  },
  "title" : "sendResponse(_:)"
}
-->

# sendResponse(_:)

Sends a notification response from the accessory to the system.

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

## Parameters

`response`

The notification response from the accessory.

## Discussion

After receiving a message through [`messageHandler(_:)`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsHandler/messageHandler(_:)), parse the accessory’s response data and create a [`NotificationResponse`](/documentation/AccessoryNotifications/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.

---

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)