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.
Escanee, conéctese y comuníquese con periféricos Bluetooth Low Energy y publique servicios periféricos locales utilizando Core Bluetooth. Úselo al implementar funciones centrales o periféricas de BLE, descubrir servicios y características, leer y escribir valores de características, suscribirse a notificaciones, configurar modos BLE en segundo plano, restaurar el estado después del reinicio de la aplicación o trabajar con flujos de trabajo CBCentralManager, CBPeripheral, CBPeripheralManager, CBService, CBCharacteristic, CBUUID o Bluetooth Low Energy. Fuente: dpearson2699/swift-ios-skills.