Contents

CBConnectPeripheralOptionNotifyOnNotificationKey

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

Declaration

let CBConnectPeripheralOptionNotifyOnNotificationKey: String

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