1. Steven Withey's Avatar
    Hi all.

    I have an app which uses the Geolocator class to track your location. It works great, except there is a condition that I'm having issues with.

    My app notifies the user when they are approaching a location, but what I want is to adjust the frequency (ReportInterval) of position changed events depending on how far away they are from the location. The reason being that I want to conserve battery power by not updating too frequently when the user is far away.

    I've built all the logic for adjusting the ReportInterval and restarting the Geolocator (it simply removes the event handlers for positionchanged/statuschanged), sets the property and adds the handlers again.

    This works great with the app open, but when the app is running in the background it causes the geolocator to stop. As soon as I drop the event handlers, the service stops and the app is tombstoned.

    Is there any way to get around the app being tombstoned while I restart the service?

    Thanks
    05-15-2014 11:56 AM
  2. Shoaib Mohammed's Avatar
    I think you always have the option of setting the report duration & minimum trigger distance when you are initializing the geo locator.. Plus, if you are on wp8.1 you have geo fencing.. I hope I got your question right...
    05-20-2014 11:20 PM

Similar Threads

  1. Replies: 4
    Last Post: 05-16-2014, 10:00 PM
  2. Guysss help!!!
    By X0LARIUM in forum Nokia Lumia 820
    Replies: 6
    Last Post: 05-15-2014, 10:05 PM
  3. Please Help! White Dots
    By Glenn Jenkins in forum Nokia Lumia 1520
    Replies: 3
    Last Post: 05-15-2014, 12:46 PM
  4. Microsoft hopes BYOD will help bolster Windows Phone in enterprise
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 05-15-2014, 11:00 AM
  5. Microsoft Research has a Windows Phone 'Urban Air' app to help monitor smog level in China
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 05-15-2014, 10:11 AM
LINK TO POST COPIED TO CLIPBOARD