You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Geolocator.GetGeopositionAsync ignoring maximumAge and timeout parameters #5661
GetGeopositionAsync(TimeSpan maximumAge, TimeSpan timeout) is redirected to GetGeopositionAsync(), which leads to app problems. Sometimes these two parameters are really important. E.g. app, that tests if current Geoposition is available to change user interface; hanging here for dozens of seconds is simply impossible; so app uses GetGeopositionAsync with timeout e.g. = 2 seconds. But Uno changes it to infinite timeout (by ignoring timeout parameters).
Also, sometimes it is important to have current, not cached/older Geoposition. Current implementation ignores maximumAge, and can return e.g. fix days old! And we have no ability to workaround this in app code, as next call to GetGeopositionAsync returns same, very old, Geoposition.
Expected behavior
Proper implementation of GetGeopositionAsync(TimeSpan maximumAge, TimeSpan timeout)
How to reproduce it (as minimally and precisely as possible)
changed the title [-]Geolocator.GetGeopositionAsync ignored maximumAge and timeout parameters[/-][+]Geolocator.GetGeopositionAsync ignoring maximumAge and timeout parameters[/+]on Apr 2, 2021
Activity
[-]Geolocator.GetGeopositionAsync ignored maximumAge and timeout parameters[/-][+]Geolocator.GetGeopositionAsync ignoring maximumAge and timeout parameters[/+]