Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Geolocator waiting for timeout #58

Open
Vandersteen opened this issue Jan 27, 2016 · 0 comments
Open

Geolocator waiting for timeout #58

Vandersteen opened this issue Jan 27, 2016 · 0 comments

Comments

@Vandersteen
Copy link

Hello everyone,

In iOS the Geolocator seems to always waits untill the timeout has passed to return the geolocation values.
Once in a while it returns immediatly but mostly it waits for the timeout.

The way I use it is the following:

    Xamarin.Geolocation.Geolocator locator;

    #if __ANDROID__
    locator = new Xamarin.Geolocation.Geolocator (Forms.Context) { DesiredAccuracy = 50 };
    #endif

    #if __IOS__
    locator = new Xamarin.Geolocation.Geolocator { DesiredAccuracy = 50 };
    #endif

    Position position = await locator.GetPositionAsync (3000);

I tracked the time it took for fetching the geolocation for a month and stored the values.

+/- 95% took roughly 3100 ms
+/- 5% took roughly 100ms

Changing the accuracy and timeout time does not seem to affect this issue.

What could be the cause of this problem ?

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

No branches or pull requests

1 participant