Scan for, connect to, and exchange data with Bluetooth Low Energy (BLE) devices. Covers the central role (scanning and connecting to peripherals), the peripheral role (advertising services), background modes, and state restoration.
| NSBluetoothAlwaysUsageDescription | Required. Explains why the app uses Bluetooth | | UIBackgroundModes with bluetooth-central | Background scanning and connecting | | UIBackgroundModes with bluetooth-peripheral | Background advertising |
iOS prompts for Bluetooth permission automatically when you create a CBCentralManager or CBPeripheralManager. The usage description from NSBluetoothAlwaysUsageDescription is shown in the permission dialog.
Scannen, verbinden und kommunizieren Sie mit Bluetooth Low Energy-Peripheriegeräten und veröffentlichen Sie lokale Peripheriedienste mithilfe von Core Bluetooth. Wird verwendet, wenn Sie zentrale oder periphere BLE-Rollen implementieren, Dienste und Merkmale ermitteln, Merkmalswerte lesen und schreiben, Benachrichtigungen abonnieren, Hintergrund-BLE-Modi konfigurieren, den Status nach einem App-Neustart wiederherstellen oder mit CBCentralManager-, CBPeripheral-, CBPeripheralManager-, CBService-, CBCharacteristic-, CBUUID- oder Bluetooth Low Energy-Workflows arbeiten. Quelle: dpearson2699/swift-ios-skills.