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.

Position retrieval times out in ios app

See original GitHub issue

I’m trying to run the Reactive geolocation example.

When i do: meteor run ios , then In the simulator The map shows up correctly for about 8 seconds and then it goes away and I see the message: Geolocation failed: Position retrieval timed out.

Is this a bug ? or is there a way around this. Everything works fine on the desktop browser.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
adimittalcommented, Feb 2, 2018

I’ve figured out the solution to this problem. Go to the info.plist file for your app in Xcode and add two entries:

NSLocationWhenInUseUsageDescription NSLocationAlwaysUsageDescription

The values can be any strings you want to display to the user for why he should allow geolocation for your app. Rebuild and deploy.

0reactions
agustinsilescommented, Feb 24, 2018

@adimittal you saved the day

Read more comments on GitHub >

github_iconTop Results From Across the Web

Position retrieval timed out error code 3 on iOS - Stack Overflow
I solved my issue by doing this : when Watcher have errors. stop it and restart. here my code : /** * Sets...
Read more >
$cordovaGeolocation.getCurrentPosition always returning ...
I always get “Position retrieval timed out.” The application works fine on Android. And retrying the same on ios i found out that...
Read more >
Getting the current location of a device - Apple Developer
Delay the start of location services until someone interacts with your app in a way that requires that information. Then, as soon as...
Read more >
Receiving "The request timed out." when using NSURLSession
I'm facing a very strange problem in my application. In particular, using the application when a request receives a timeout message, all the...
Read more >
Turn Location Services and GPS on or off on your iPhone ...
How to give apps permission to use your location. Some apps might not work unless you turn on Location Services. 1 The first...
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