---
title: CBConnectPeripheralOptionNotifyOnConnectionKey
framework: corebluetooth
role: symbol
role_heading: Global Variable
path: corebluetooth/cbconnectperipheraloptionnotifyonconnectionkey
---

# CBConnectPeripheralOptionNotifyOnConnectionKey

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

## Declaration

```swift
let CBConnectPeripheralOptionNotifyOnConnectionKey: 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)
- [CBConnectPeripheralOptionNotifyOnDisconnectionKey](corebluetooth/cbconnectperipheraloptionnotifyondisconnectionkey.md)
- [CBConnectPeripheralOptionNotifyOnNotificationKey](corebluetooth/cbconnectperipheraloptionnotifyonnotificationkey.md)
- [CBConnectPeripheralOptionRequiresANCS](corebluetooth/cbconnectperipheraloptionrequiresancs.md)
- [CBConnectPeripheralOptionStartDelayKey](corebluetooth/cbconnectperipheraloptionstartdelaykey.md)
