tastejs / PropertyCross

Helping developers select a framework for cross-platform mobile development.
propertycross.com
591 stars 215 forks source link

Xamarin / Native Windows Phone - Do not continually watch location #15

Open ColinEberhardt opened 11 years ago

ColinEberhardt commented 11 years ago

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

sh1989 commented 11 years ago

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