The problem:
-> My app location permission is returning on request never_ask_again.
-> I added ACCESS_FINE_LOCATION on app.json file. But the Google Play refuses the App due double implementation.
The cause:
The lib uses uses-permission-sdk-23 and expo uses uses-permission directives. So the config/plugin is doubliing the configuration.
When using the option neverUseForLocation it manually adds the ACCESS_FINE_LOCATION with maxSdk and blocks the location permission on newer devices.
Summary
The problem: -> My app location permission is returning on request
never_ask_again
. -> I added ACCESS_FINE_LOCATION onapp.json
file. But the Google Play refuses the App due double implementation.The cause: The lib uses
uses-permission-sdk-23
and expo usesuses-permission
directives. So the config/plugin is doubliing the configuration.When using the option
neverUseForLocation
it manually adds the ACCESS_FINE_LOCATION withmaxSdk
and blocks the location permission on newer devices.It is added on this file: https://github.com/expo/config-plugins/blob/b86291107ec646aee5aee66362e182ec541caf34/packages/react-native-ble-plx/build/withBLEAndroidManifest.js
Workarounds:
1) Manually remove the double permissions added by the config plugin. 2) Remove the
neverUseForLocation
option.Config Plugin
@config-plugins/react-native-ble-plx
What platform(s) does this occur on?
Android
SDK Version
47
Reproducible demo
Generated AndroidManifest.xml (Without explicit ACCESS_FINE_LOCATION)
Generated AndroidManifest.xml (With explict ACCESS_FINE_LOCATION on app.json)
App.json plugins session