Skip to content

Moo 1874/fused location patch - 10.18 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: mx/10.18
Choose a base branch
from

Conversation

karahanharunn
Copy link
Contributor

after replacing react-native-geolocation-service, we started getting the timeout error.

I found out that

Community package uses LocationManager.requestLocationUpdates(...) flow via your native modules while geolocation-service using Fused Location Provider.

Fused location provider works faster for following reasons

1- Fuses GPS, Wi-Fi, cell-tower, and sensors to get a “good enough” fix almost instantly.

2- Returns the last known location immediately and only then tries to get a fresh reading.

3- Lets you configure a single high-accuracy request (and tear it down) instead of spinning up a continuous listener.

I applied a patch within community package to use same provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant