<!--
{
  "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" : "ExternalAccessory",
  "identifier" : "/documentation/ExternalAccessory/EAAccessoryManager/registerForLocalNotifications()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "External Accessory"
    ],
    "preciseIdentifier" : "c:objc(cs)EAAccessoryManager(im)registerForLocalNotifications"
  },
  "title" : "registerForLocalNotifications()"
}
-->

# registerForLocalNotifications()

Begins the delivery of accessory-related notifications to the current application.

```
func registerForLocalNotifications()
```

## Discussion

Call this method to be notified when an accessory becomes connected or disconnected. The system does not send [`EAAccessoryDidConnectNotification`](/documentation/ExternalAccessory/EAAccessoryDidConnectNotification) and [`EAAccessoryDidDisconnectNotification`](/documentation/ExternalAccessory/EAAccessoryDidDisconnectNotification) notifications automatically, so calling this method lets the system know that your application wants to receive them. Typically, you would call this method only once early in your application, either before or after configuring your notification observers. When you no longer need to monitor these notifications, you should call the matching [`unregisterForLocalNotifications()`](/documentation/ExternalAccessory/EAAccessoryManager/unregisterForLocalNotifications()) method.

You can configure your notification observers either before or after calling this method. Because the shared accessory manager is the only object that sends accessory-related notifications, specifying that object or `nil` for the notification sender has the same outcome.

---

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)