Does changing the distanceFilter value have any effect on battery life? If so what is this effect and why should it have any effect?
Does changing the distanceFilter value have any effect on battery life? If so what
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The distanceFilter property has no or extremely minimal affect on battery life. All it does restrict calls to the delegate to every n meters that it moves. If conserving battery life is what you want to do with gps then I recommend only turning on the gps and taking a reading every n seconds, then turning it off again until the next reading. I would use a timer. If you want this to also work in the background take the following steps:
In your apps plist file add the “app registers for location updates” to the Required background modes key.
In your applicationDidEnterBackground method do something like this
Where you are starting the location manager just before the app would expire to ensure that it continues its active state in the background. This will allow the app to always run in the background so you can intermittently check the location by turning gps on/off