---
title: unregisterForLocalNotifications()
framework: externalaccessory
role: symbol
role_heading: Instance Method
path: externalaccessory/eaaccessorymanager/unregisterforlocalnotifications()
---

# unregisterForLocalNotifications()

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

## Declaration

```swift
func unregisterForLocalNotifications()
```

## Discussion

Discussion Typically, you would call this method either when your application exits or when you no longer want to receive accessory-related notifications. Calls to this method must be balanced with a preceding call to the registerForLocalNotifications() method.

## See Also

### Managing Connection Status Changes

- [registerForLocalNotifications()](externalaccessory/eaaccessorymanager/registerforlocalnotifications().md)
- [EAAccessoryDidConnect](foundation/nsnotification/name-swift.struct/eaaccessorydidconnect.md)
- [EAAccessoryDidDisconnect](foundation/nsnotification/name-swift.struct/eaaccessorydiddisconnect.md)
- [EAAccessoryKey](externalaccessory/eaaccessorykey.md)
- [EAAccessorySelectedKey](externalaccessory/eaaccessoryselectedkey.md)
