From 4465f1767936a943318c29ec83a0b5cf265e0a41 Mon Sep 17 00:00:00 2001 From: Grzegorz Blach Date: Tue, 28 Jan 2020 21:45:27 +0100 Subject: [PATCH] BLE scanning on Android 10 requires ACCESS_FINE_LOCATION permission, ACCESS_COARSE_LOCATION is not sufficient. --- android/src/main/AndroidManifest.xml | 2 +- .../src/main/kotlin/com/pycampers/rx_ble/PermissionMethods.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 70a0af9..e7cb4ea 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -2,6 +2,6 @@ package="com.pycampers.rx_ble"> - + diff --git a/android/src/main/kotlin/com/pycampers/rx_ble/PermissionMethods.kt b/android/src/main/kotlin/com/pycampers/rx_ble/PermissionMethods.kt index 0e7dcaf..78643e4 100644 --- a/android/src/main/kotlin/com/pycampers/rx_ble/PermissionMethods.kt +++ b/android/src/main/kotlin/com/pycampers/rx_ble/PermissionMethods.kt @@ -34,7 +34,7 @@ import java.util.NoSuchElementException const val REQUEST_ENABLE_BT = 1 const val REQUEST_ENABLE_LOC = 2 const val REQUEST_PERM_LOC = 3 -const val LOC_PERM = Manifest.permission.ACCESS_COARSE_LOCATION +const val LOC_PERM = Manifest.permission.ACCESS_FINE_LOCATION enum class AccessStatus { OK,