IPhone drain when using location services

It would be great to know that the battery discharge rate depends on different accuracy settings for the iOS location service when it constantly updates the location (I'm not talking about the significant changes service). I tried using the tool energy tool, but I can not provide any information. At the same time, it will take too much time to sit there and the time of my iPhone to see how long it takes to die.

I know that the lower the accuracy, the less the battery is discharged. But what are the solid numbers on this? Somebody knows?

Thanks!

+4
source share
3 answers
  • I don’t know any official numbers - this makes a lot of sense, because it really depends on the use of your device (WiFi / 3G) and the use of location parameters (remote filters, valid location timestamps, polling intervals, etc.)

  • BUT, the UIDevice has exactly what you need to make your own measurements: [[UIDevice currentDevice] setBatteryMonitoringEnabled: YES];

[[UIDevice currentDevice] batteryLevel]; [[UIDevice currentDevice] batteryState];

calculate your own statistics, just remember that other applications that use this location can also affect the life of the device (for example: if your application received a cached location and accepted it, this prevented the device from using it to get new places ...)

+2
source

Like MCannon, this is about the accuracy of location services. In general, the more accurate, the more battery is used. I do not have any specific numbers about the differences.

I guess this is due to how quickly the phone can find satellites and radio masts. More accurate positioning requires more time to fix a position while listening to more satellites.

0
source

You can write a test application that runs continuously until the battery dies. Record a log report every minute or for any frequency that suits your needs. When the phone dies, look at the magazine. You will see when the phone is dead.

0
source

Source: https://habr.com/ru/post/1332058/


All Articles