I want to ask you, if I understand it. When I create GeoCoordinateWathcer in method OnInvoke of BackgroundAgent like this:
protected override void OnInvoke(ScheduledTask task)
{
_watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High)
{
MovementThreshold = 100
};
_watcher.PositionChanged += PositionChanged;
_watcher.Start();
}
and I move more than 100m and Task will be invoked, so PositionChanged doesn't remember my previous position. Is it truth? Then PositionChanged event has no sense in BackgroundAgent, or? If I want to upgrade my position every 100m I have to save previous position and calculate distance with for example Haversine formula from previous and current positions? Thanks man.