React-native-permissions: Permission.request() doesn't prompt the user if the Location Service is turned off

Created on 2 Nov 2017  路  11Comments  路  Source: zoontek/react-native-permissions

If the user turned off the location services, Permission.request() doesn't prompt the user to turn it on. How do we handle this situation

Most helpful comment

@lfkwtz unfortunately when GPS is off it returns authorized

All 11 comments

馃憤 I have this problem too

+1

I have same situation in simulator.

Perrmission.request() //  returns false and does not open any dialog

However openSetting is working correctly
I have tested on IPhone6s simulator

+1

+1

+1

me too, same problem.

Not sure why this is an open issue still, this is the expected behavior.

You should check if the status is either undetermined or denied. If it's denied, you should show the user steps on how to manually re-enable and offer a link to the settings section.

@lfkwtz unfortunately when GPS is off it returns authorized

+1

I am closing this since this issue does not exists anymore with the 2.0.0 release.

Was this page helpful?
0 / 5 - 0 ratings