react-native-geolocation-service: Location settings are not satisfied

I use react-native-geolocation-service for get user current location without internet and I try with your example code , my problem is when WIFI is off app give me thie error :

code:5 , Location settings are not satisfied

and when WIFI is on app work very well and give me current location

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

When I put my device on airplane mode and trying to get location getting error message “Location settings are not satisfied”. Is react-native-geolocation-service not works in Airplane mode? Please help.

gives me same error “Location settings are not satisfied.” though mobile data wifi are turned on!

Can you try using my PR/Branch, you can pass a flag “forceRequestLocation: true” that will still try to get a location even though location settings are not satisfied. You can use it along showLocationDialog: false

https://github.com/Agontuk/react-native-geolocation-service/pull/68

https://github.com/cladjules/react-native-geolocation-service