PropertyCross icon indicating copy to clipboard operation
PropertyCross copied to clipboard

Xamarin / Native Windows Phone - Do not continually watch location

Open ColinEberhardt opened this issue 11 years ago • 1 comments

Watching geolocation drains battery - the GeoCoordinateWatcher should only be started when a location is required

ColinEberhardt avatar Oct 25 '12 15:10 ColinEberhardt

GeoCoordinateWatcher appears to remember the last known location, which can be queried to determine whether the information is still relevant. I do this in the Xamarin Android project, using any location obtained within the last 5 minutes as acceptable.

Source: http://stackoverflow.com/questions/6246259/location-service-returning-previous-coordinates-on-wp7

sh1989 avatar Nov 28 '12 08:11 sh1989