Comments (20)
gives me same error "Location settings are not satisfied." though mobile data wifi are turned on!
from react-native-geolocation-service.
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.
from react-native-geolocation-service.
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/cladjules/react-native-geolocation-service
from react-native-geolocation-service.
You mean the message is wrong, or it should've been a different response ?
from react-native-geolocation-service.
I want get user current location without internet and send it with SMS , but when WIFI is off this library not work and give me Location settings are not satisfied
and when WIFI is on without connect to the any access point this library give me Time out
Error , and just worked when WIFI is connected
from react-native-geolocation-service.
I don't think FusedLocationProvider supports getting location without internet. I'll look into the documentation just to be sure.
EDIT: It seems like I was right. So currently this library does not support getting location without internet.
from react-native-geolocation-service.
I got same error
"react": "16.7.0",
"react-native": "^0.58.3",
"react-native-geolocation-service": "^2.0.0",
from react-native-geolocation-service.
@cladjules i will try. thank you.
from react-native-geolocation-service.
It works for me! when the device has no wifi connection or it's disabled, it still can get the GPS position.
I just changed the RNFusedLocationModule.java and LocationUtils.java files using the @cladjules branch and solved the error message "Location settings are not satisfied". It wasn't need to set any flag
Thanks!
from react-native-geolocation-service.
@vikasrai1502, yes I think this library not working in airplane mode. I'm trying to search for another library which supports airplane mode but I don't find it.
any library suggestion to resolve this problem?
from react-native-geolocation-service.
Now my branch was merged. I think we are halfway from having it working with airplane mode. I will look at doing another PR and some testing when in back from holidays at the end of the month.
But that's definitely doable in that project.
Thanks
from react-native-geolocation-service.
@cladjules but I need the solution now
from react-native-geolocation-service.
Enabling airplane mode automatically turns off wifi, enable wifi and it should work.
from react-native-geolocation-service.
Any updates on this?
from react-native-geolocation-service.
@entranOA I found a very good solution.
I did a project where you can see the solution
https://github.com/airtonazevedo/react-native-geolocation-offline-and-airplanemode
from react-native-geolocation-service.
This library works great! Even when wifi, cellular, and bluetooth are off I can get a geolocation, but for some reason when I turn on airplane mode (Location is still on in my status bar) I get the same error as the OP: code:5 , Location settings are not satisfied
. I'm on android 10 (Q) using library v4.0.0
from react-native-geolocation-service.
If anyone is having this error even with wifi and mobile data turned on, put your location mode in your phone settings to device only and in the findCoordinates function set enableHighAccuracy to false.
from react-native-geolocation-service.
You can try the master branch to test if location request works in airplane mode.
from react-native-geolocation-service.
This is already fixed in newer versions, now it'll try to get a location fix. But it's not guaranteed.
from react-native-geolocation-service.
I use expo-location for get user Last location without internet 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
from react-native-geolocation-service.
Related Issues (20)
- Not getting location prompt while opening the app for ionic3
- Geolocation.getCurrentPosition always returns San Fransisco lat/long HOT 1
- Receiving longitude and latitude as 0
- Latitude is coming as 0 in ios where longitude has a valid value HOT 5
- Unable to get the current location in Android when we are using wifi HOT 2
- watchID always 0 when i called watchPosition HOT 2
- React-native-geolocation-service failing when building on xcode it says "underlying Objective-C module 'react_native_geolocation_service' not found", "failed to verify module interface of 'react_native_geolocation_service' due to the errors above; the textual interface may be broken" HOT 2
- GPS accuracy lack HOT 1
- Crash on Xcode 15 RC
- watchPosition not working consistently on iOS
- upgrading to googlePlayServicesVersion 21.0.1 HOT 2
- Only update location once every 5 minutes not working as expected
- Search for location in the background - Android HOT 3
- In latest React-native 0.73 version it gives error of gerCurrentPosition not defined when i use same code react-native lesser version it works perfect but in the latest version it doesn't work
- Restricting to multiple countries? HOT 1
- Swift Requirement and iOS 12 crashes
- Could not invoke RNFusedLocation.startObserving HOT 2
- [TypeError: Cannot read property 'getCurrentPosition' of null] HOT 3
- GooglePlayServicesMissingManifestValueException at getCurrentPosition()
- Usage of Insecure random generator (Instances of java.util.Random) found in Testing.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-geolocation-service.