Richou / react-native-android-location-enabler

Display a GoogleMap like android popup to ask for user to enable location services if disabled
MIT License
204 stars 51 forks source link

Location status is 'enabled' even after clicking 'no thanks' in popup #45

Open ayu-ayushisood opened 4 years ago

ayu-ayushisood commented 4 years ago

Location is not enabled yet, and when the popup opens I click No Thanks which should go in the catch statement as per the documentation. But, it is still going in then statement and printing enabled in the console.

I have attached a screenshot of the code and console is also visible.

Screen Shot 2020-07-11 at 3 49 28 PM
Richou commented 4 years ago

Which version of ReactNative ? More details on Device ? Why do you return a new Promise ? The function promptForEnableLocationIfNeeded already returns a promise.