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

# didActivate(for:)

Establishes a notification session for communication with the system.

```
func didActivate(for session: NotificationsForwarding.Session)
```

## Parameters

`session`

A session object that enables communication with the system.

## Discussion

Store the session reference to use across multiple notification life cycle events for sending messages to your accessory and communicating responses back to the system.

---

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)