<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0B10ForwardingC0aB7SessionP"
  },
  "title" : "NotificationsForwarding.AccessoryNotificationsSession"
}
-->

# NotificationsForwarding.AccessoryNotificationsSession

A protocol that enables bidirectional communication between your extension and the system.

```
protocol AccessoryNotificationsSession : Sendable
```

## Overview

Use the session object provided to [`didActivate(for:)`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsHandler/didActivate(for:)) to send messages to your accessory and communicate notification responses back to the system.

## Topics

### Sending messages to accessory

[`func send(message: AccessoryMessage) async throws`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/send(message:))

Sends a message to the paired accessory.

### Communicating responses

[`func sendResponse(NotificationResponse) async throws`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/sendResponse(_:))

Sends a notification response from the accessory to the system.

### Removing notifications

[`func removeNotifications(identifiers: [AccessoryNotification.Identifier]) async throws`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/removeNotifications(identifiers:))

Removes the identified notifications.

[`func removeNotifications(withIdentifiers: [String], sourceIdentifier: String) async throws`](/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/removeNotifications(withIdentifiers:sourceIdentifier:))

Removes notifications using primitive identifier components.

## Relationships

### Conforming Types

[`Session`](/documentation/AccessoryNotifications/NotificationsForwarding/Session)

### Inherits From

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)