Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support android:usesPermissionFlags="neverForLocation" #740

Open
davidofwatkins opened this issue Nov 10, 2022 · 0 comments
Open

Support android:usesPermissionFlags="neverForLocation" #740

davidofwatkins opened this issue Nov 10, 2022 · 0 comments

Comments

@davidofwatkins
Copy link

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:

<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>

Is there any way to configure this plugin to include android:usesPermissionFlags="neverForLocation" or otherwise not include thi permission automatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant