Skip to content

Commit 13bc937

Browse files
committed
chore: readme update
1 parent 97a4cb5 commit 13bc937

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/ble/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* [Interaction](#interaction)
4646
* [Debugging](#debugging)
4747
* [isBluetoothEnabled](#isbluetoothenabled)
48-
* [hasLocationPermission](#haslocationpermission)
48+
* [Permissions (Android)](#permissions-android)
4949
* [requestLocationPermission](#requestlocationpermission)
5050
* [enable (Android only)](#enable-android-only)
5151
* [startScanning](#startscanning)
@@ -127,12 +127,12 @@ bluetooth.isBluetoothEnabled().then(
127127
}
128128
);
129129
```
130-
### hasLocationPermission
131-
__Since plugin version 1.2.0 the `startScanning` function will handle this internally so it's no longer mandatory to add permission checks to your code.__
130+
### Permissions (Android)
132131

133-
On Android 6 you need to request permission to be able to interact with a Bluetooth peripheral (when the app is in the background) when targeting API level 23+. Even if the `uses-permission` tag for `ACCESS_COARSE_LOCATION` is present in `AndroidManifest.xml`.
132+
On Android >= 6 and < 12 you need to request permissions to be able to interact with a Bluetooth peripheral (when the app is in the background) when targeting API level 23+. You need `BLUETOOTH` and `ACCESS_FINE_LOCATION`. You should read the doc [here](https://developer.android.com/develop/connectivity/bluetooth/bt-permissions)
134133

135-
Note that for `BLUETOOTH` and `BLUETOOTH_ADMIN` you don't require runtime permission; adding those to `AndroidManifest.xml` suffices (which the plugin does for you).
134+
On android >= 12 you need new permissions. You should read the doc [here](https://developer.android.com/develop/connectivity/bluetooth/bt-permissions)
135+
Note that for `BLUETOOTH` and `BLUETOOTH_ADMIN` you don't require runtime permission; adding those to `AndroidManifest.xml` suffices.
136136

137137
Note that `hasLocationPermission ` will return true when:
138138
* You're running this on iOS, or

0 commit comments

Comments
 (0)