Git Product home page Git Product logo

Comments (20)

GaneshSaiKumar avatar GaneshSaiKumar commented on May 12, 2024 3

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

from react-native-geolocation-service.

vikasrai1502 avatar vikasrai1502 commented on May 12, 2024 3

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.

cladjules avatar cladjules commented on May 12, 2024 1

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

#68

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

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 12, 2024

You mean the message is wrong, or it should've been a different response ?

from react-native-geolocation-service.

reza-mazarlou avatar reza-mazarlou commented on May 12, 2024

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.

Agontuk avatar Agontuk commented on May 12, 2024

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.

romreed avatar romreed commented on May 12, 2024

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.

romreed avatar romreed commented on May 12, 2024

@cladjules i will try. thank you.

from react-native-geolocation-service.

leandroquinger avatar leandroquinger commented on May 12, 2024

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.

hanaechahid avatar hanaechahid commented on May 12, 2024

@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.

cladjules avatar cladjules commented on May 12, 2024

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.

hanaechahid avatar hanaechahid commented on May 12, 2024

@cladjules but I need the solution now

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 12, 2024

Enabling airplane mode automatically turns off wifi, enable wifi and it should work.

from react-native-geolocation-service.

entranOA avatar entranOA commented on May 12, 2024

Any updates on this?

from react-native-geolocation-service.

airtonazevedo avatar airtonazevedo commented on May 12, 2024

@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.

IanPhilips avatar IanPhilips commented on May 12, 2024

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.

saad65 avatar saad65 commented on May 12, 2024

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.

Agontuk avatar Agontuk commented on May 12, 2024

You can try the master branch to test if location request works in airplane mode.

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 12, 2024

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.

g7crservice-Binni-kumari avatar g7crservice-Binni-kumari commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.