react-native-ble-manager icon indicating copy to clipboard operation
react-native-ble-manager copied to clipboard

Update AndroidManifest.xml to support new options

Open asukiaaa opened this issue 1 year ago • 2 comments

I need permissions to run on Android14 as react-native-ble-plx. https://github.com/dotintent/react-native-ble-plx/blob/master/android/src/main/AndroidManifest.xml

Environment that I tried. ReactNative: 0.71.14 Expo: 48.0.21 Android device: ASUS_AI2202 with Android14 react-native-ble-manager: 11.5.3 and 11.5.5

asukiaaa avatar Jun 23 '24 08:06 asukiaaa

Hi @asukiaaa , you have to set the manifest in your app whit the permissions you need. Probably is better to remove it from the repo.

marcosinigaglia avatar Jun 24 '24 07:06 marcosinigaglia

Thank you for the response. The AndroidManifest file of expo is automatically created by expo so I think that we should not edit it. I used a plugin of ble-plx but I noticed that I don't need including plugin to enable ble scan if I just add ble-plx to package.json. By editing AndroidManifext file (I don't want to do for permanent change), I found that neverForLocation flag for android.permission.BLUETOOTH_SCAN is needed to my environment.

asukiaaa avatar Jun 25 '24 10:06 asukiaaa