Location needs to be enabled for Bluetooth Low Energy Scanning on Android 6.0

前端 未结 8 688
旧巷少年郎
旧巷少年郎 2020-11-27 13:05

After upgrading to Android version 6.0 Bluetooth Low Energy (BLE) scanning will only work if Location services are enabled on the device. See here for reference: Bluetooth L

8条回答
  •  死守一世寂寞
    2020-11-27 13:51

    You can scan BLE devices without location access using CompanionDeviceManager (API26). https://developer.android.com/reference/android/companion/CompanionDeviceManager.

提交回复
热议问题