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.
Bluetooth Low Energy 주변 장치를 스캔, 연결 및 통신하고 Core Bluetooth를 사용하여 로컬 주변 장치 서비스를 게시합니다. BLE 중앙 또는 주변 역할 구현, 서비스 및 특성 검색, 특성 값 읽기 및 쓰기, 알림 구독, 백그라운드 BLE 모드 구성, 앱 다시 실행 후 상태 복원 또는 CBCentralManager, CBPeripheral, CBPeripheralManager, CBService, CBCharacteristic, CBUUID 또는 Bluetooth Low Energy 워크플로 작업 시 사용합니다. 출처: dpearson2699/swift-ios-skills.