Position retrieval times out in ios app
See original GitHub issueI’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:
- Created 8 years ago
- Comments:17 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@adimittal you saved the day