---
title: CBConnectPeripheralOptionNotifyOnNotificationKey
framework: corebluetooth
role: symbol
role_heading: Global Variable
path: corebluetooth/cbconnectperipheraloptionnotifyonnotificationkey
---

# CBConnectPeripheralOptionNotifyOnNotificationKey

A Boolean value that specifies whether the system should display an alert for any notification sent by a peripheral.

## Declaration

```swift
let CBConnectPeripheralOptionNotifyOnNotificationKey: String
```

## Discussion

Discussion If true, the system displays an alert for all notifications received from a given peripheral while the app is suspended. 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)
- [CBConnectPeripheralOptionNotifyOnDisconnectionKey](corebluetooth/cbconnectperipheraloptionnotifyondisconnectionkey.md)
- [CBConnectPeripheralOptionRequiresANCS](corebluetooth/cbconnectperipheraloptionrequiresancs.md)
- [CBConnectPeripheralOptionStartDelayKey](corebluetooth/cbconnectperipheraloptionstartdelaykey.md)
