I want to write the acquired data once per second using CrossGeolocator, but sometimes I acquire the data twice per second.
public async Task StartListening()
{
try
{
CrossGeolocator.Current.DesiredAccuracy = 1;
await CrossGeolocator.Current.StartListeningAsync(TimeSpan.FromSeconds(1), 1, false);
CrossGeolocator.Current.PositionChanged += PositionChanged;
}
catch
{
}
}