<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotification/Name-swift.struct/EAAccessoryDidConnect",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@EAAccessoryDidConnectNotification"
  },
  "title" : "EAAccessoryDidConnect"
}
-->

# EAAccessoryDidConnect

A notification that the system sends when an accessory becomes connected and available for your application to use.

```
static let EAAccessoryDidConnect: NSNotification.Name
```

## Discussion

The notification object is the shared accessory manager. The `userInfo` dictionary contains an <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessoryKey>, whose value is an <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessory> object representing the accessory that is now connected. If a Bluetooth accessory was selected by the user in the Bluetooth picker, this dictionary contains the <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessorySelectedKey> key. Before delivery of this notification can occur, you must call the <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessoryManager/registerForLocalNotifications()> method to let the system know you are interested in receiving this notification.

After receiving this notification, always check the <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessory/protocolStrings> array of the newly connected accessory object to verify that the required protocol is present before trying to open a session. In some cases, the system may send the connection notification before authentication has completed, resulting in an empty <doc://com.apple.documentation/documentation/ExternalAccessory/EAAccessory/protocolStrings> array and a subsequent disconnection message. If this happens, the system sends another connection message later, when authentication succeeds.

> Important:
> iPhone and iPad apps running on Macs with Apple silicon never receive this notification.

---

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)