Windows-Geolocator returns chached positions after about 15 minutes

1028
2
Jump to solution
04-08-2021 06:29 AM
by Anonymous User
Not applicable

I use the PositionChanged-Event from the Windows-Geolocator to display the users current location on a map. Everything works fine, but after about 15 minutes, the geolocator only returns positions that are quite old (30 seconds to one minute):

Here is a snippet from my logfile:

2021-04-06 18:07:23,787 INFO [127:WindowsGnssPositionProvider:LocatorOnPositionChanged()] -> LocatorOnPositionChanged vom Geolocator: Long: xxxx, Lat: xxxx, Accuracy: 4, Timestamp: 06.04.2021 18:06:22 +02:00, Source: Satellite

The distance becomes greater, the more time passes.

This is my geolocator instantiation:

 

 

geolocator = new Geolocator() 
{ 
   DesiredAccuracy = PositionAccuracy.High, 
   ReportInterval = 1000 
}; 
geolocator.PositionChanged += Geolocator_PositionChanged;

 

 

Is there a way to solve this problem or to clear the cache from the geolocator?

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

I'm Sorry, this was a issue in my own implementation and not by the Geolocator or ESRI Sdk.

View solution in original post

2 Replies
dotMorten_esri
Esri Notable Contributor

Since this is related to Microsoft's WinRT APIs, you might have more luck with asking in the Microsoft forums, but it might all depend on which device you use to get locations from (and its driver), whether you have a clear view of the sky etc.

0 Kudos
by Anonymous User
Not applicable

I'm Sorry, this was a issue in my own implementation and not by the Geolocator or ESRI Sdk.