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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With