Skip to content

Commit 1c5086b

Browse files
committed
add missing permissions
1 parent 5800fef commit 1c5086b

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

android/app/src/main/AndroidManifest.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
<uses-permission android:name="android.permission.INTERNET" />
44

55

6+
<!--
7+
HACK: this permission should not be needed on android 12+ devices anymore,
8+
but in fact some manufacturers still need it for BLE to properly work :
9+
https://stackoverflow.com/a/72370969
10+
-->
11+
<uses-permission android:name="android.permission.BLUETOOTH" tools:remove="android:maxSdkVersion" />
12+
<!--
13+
should normally only be needed on android < 12 if you want to:
14+
- activate bluetooth programmatically
15+
- discover local BLE devices
16+
see: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#discover-local-devices.
17+
Same as above, may still be wrongly needed by some manufacturers on android 12+.
18+
-->
19+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" tools:remove="android:maxSdkVersion" />
20+
21+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="28"/>
22+
<uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
23+
24+
25+
26+
27+
628
<!-- Needed if your app search for Bluetooth devices. -->
729
<!--
830
If your app doesn't use Bluetooth scan results to derive physical location information,

0 commit comments

Comments
 (0)