Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find battery usage of single application programmatically in ios

Tags:

ios

iphone

ipad

Find out the battery usage of an application in `iOS`` devices.Is is possible to do this, if it is possible how to estimate the battery usage?

like image 910
raji kurella Avatar asked Sep 05 '14 08:09

raji kurella


1 Answers

There's not a way to access this with code.

The easiest way to test it is like this:

1) Charge up your device to 100%. Leave it playing music until the battery dies. Keep track of how long that took.

2) Recharge the device to 100%, leave it playing music AND running your app until the battery dies.

This gives you some idea (at least compared to just playing music) how much power is consumed by your app.

like image 200
Almo Avatar answered Sep 21 '22 02:09

Almo