---
title: CBConnectPeripheralOptionNotifyOnDisconnectionKey
framework: corebluetooth
role: symbol
role_heading: Global Variable
path: corebluetooth/cbconnectperipheraloptionnotifyondisconnectionkey
---

# CBConnectPeripheralOptionNotifyOnDisconnectionKey

A Boolean value that specifies whether the system should display an alert when disconnecting a peripheral in the background.

## Declaration

```swift
let CBConnectPeripheralOptionNotifyOnDisconnectionKey: String
```

## Discussion

Discussion The value for this key is an NSNumber object. This key is useful for apps that haven’t specified the bluetooth-central background mode and can’t display their own alert. If more than one app requests a notification for a given peripheral, the one that was most recently in the foreground receives the alert. If the key isn’t specified, the default value is false.

## See Also

### Options

- [CBConnectPeripheralOptionEnableAutoReconnect](corebluetooth/cbconnectperipheraloptionenableautoreconnect.md)
- [CBConnectPeripheralOptionEnableTransportBridgingKey](corebluetooth/cbconnectperipheraloptionenabletransportbridgingkey.md)
- [CBConnectPeripheralOptionNotifyOnConnectionKey](corebluetooth/cbconnectperipheraloptionnotifyonconnectionkey.md)
- [CBConnectPeripheralOptionNotifyOnNotificationKey](corebluetooth/cbconnectperipheraloptionnotifyonnotificationkey.md)
- [CBConnectPeripheralOptionRequiresANCS](corebluetooth/cbconnectperipheraloptionrequiresancs.md)
- [CBConnectPeripheralOptionStartDelayKey](corebluetooth/cbconnectperipheraloptionstartdelaykey.md)
