cordova-plugin-bluetoothle
cordova-plugin-bluetoothle copied to clipboard
Support `android:usesPermissionFlags="neverForLocation"`
This Android documentation specifies that apps can add android:usesPermissionFlags="neverForLocation"
to the android.permission.BLUETOOTH_SCAN
permission in AndroidManifest.xml
. However, when I manually add this to my config.xml
:
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" />
...I receive an error during the build that complains about a duplicate permission:
Error:
Element uses-permission#android.permission.BLUETOOTH_SCAN at AndroidManifest.xml:63:5-73 duplicated with element declared at AndroidManifest.xml:62:5-120
This seems to happen because the plugin adds the BLUETOOTH_SCAN
permission without android:usesPermissionFlags
, conflicting with my <uses-permission>
that has it:
https://github.com/randdusing/cordova-plugin-bluetoothle/blob/568c07daec24d5f7b27213e40eea1987956b7571/plugin.xml#L27
Is there any way to configure this plugin to include android:usesPermissionFlags="neverForLocation"
or otherwise not include thi permission automatically?