Iphone - Which Consumes Less Battery? StartmonitoringLocationsChanges or startmonitoringforregion?

I would like you to give me your feedback on which method consumes less battery.

My app will start in the background and wake up with location changes, so I would like to use a method that uses less battery.

Any ideas on which one it is?

thank

+3


source to share


1 answer


None of these options are responsible for more or less battery consumption.

In order for your app to be notified of any location update, whether it changes for a region or a significant location change, you must indicate in your app Info.plist file that you need location-based services in the background.

There are actually two relevant choices for location services: location-services or gps .



To avoid draining the user's battery, select location-services . If you tell your app to need background gps services , you will drain your battery because that will cause the GPS hardware (assuming it is present) to be turned on and THAT will drain your battery. When you specify location-services , the device uses the cellular radio (which is anyway, if you have an iPhone) to pinpoint the location. Not as accurate as gps , but most applications do not need a GPS accuracy. (If you do, then use gps , of course, but be aware of the implications for battery life.)

I recently wrote a test application (and I wrote about it last week here ) and I found that there was no significant one when I had multiple zones configured to monitor and I specified location-services as the background service required.

+5


source







All Articles