question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Location request timed out most of the time.

See original GitHub issue

Im using getCurrentPosition to get user location with following params.

 enableHighAccuracy: false,
timeOut: 15000,
maximumAge: 10000,

Most of the time response will be Location request timed out. Only after getting the user location I can generate data based on that. Is there any way to fix this issue or should i try any other libraries.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:8
  • Comments:26 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Kamill90commented, May 24, 2020

I have this problem only with Android 10

3reactions
Agontukcommented, Apr 24, 2020

If it’s android, some reported that opening google maps once will solve this issue. For iOS, I’m not sure what the issue could be. Are you using emulator or actual device?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Android location request timed out - Stack Overflow
timeout (ms) - Is a positive value representing the maximum length of time (in milliseconds) the device is allowed to take in order...
Read more >
Android - Location request timed out · Issue #90 - GitHub
It works on most of devices but in some cases its not even work on them and the error is always location request...
Read more >
Solve “Location request timed out” problem when ... - Steve Mu
Solve “Location request timed out” problem when using geolocation in React Native. It took me a few hours just to make the navigator.geolocation...
Read more >
intermittent network request timed out on iOS 13.4.1+
1. The most common reason this happens is because your app is inadvertently connecting to a server that you didn't expect to. To...
Read more >
LocationRequest | Google Play services
Many location requests parameters are considered hints, ... small amount of time in case a high accuracy location can be delivered instead.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found