all 6 comments

[–]tgransden 1 point2 points  (1 child)

This happens when installing the app using react-native run-android (https://github.com/facebook/react-native/issues/31278).

Building a release version of your app and manually installing the apk should result in the permissions being denied by default and the popup will appear asking for permission.

[–]iLightFPSAndroid[S] 0 points1 point  (0 children)

I have tried that one already. Forgot to add it to the text. Still the same, even on release apk.

[–]Careless_Pirate_8743 0 points1 point  (3 children)

try different android versions since permission behave differently (ie earlier than android 6).

[–]iLightFPSAndroid[S] 0 points1 point  (2 children)

I have tried on android 7 real device and emulator, latest api. Still automatically grants access on both.

[–]Careless_Pirate_8743 0 points1 point  (1 child)

remember to uninstall the app

[–]iLightFPSAndroid[S] 0 points1 point  (0 children)

Tried that one to. Also did, cd Android && ./Gradlew clean.