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: xyz, Lat: xyz, 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?