Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get battery consumption value for an iOS app (x mAh/min)?

I'm currently trying to improve the battery usage of the app we're developing.

The only thing I found was percentage with a jailbreak solution (here),

I did not find absolute value like 3.4 mAh/min as example.

I also did not find iOS guidelines to assess the battery consumption.

Ideally, I would love to see is something like that :

  • Google Analytics SDK : 0.4 mAh/min
  • Bluetooth SDK : 1.0 mAh/min
  • API SDK : 2.0 mAh/min

Something as Battery Doctor is providing :

enter image description here

Is that even possible ?

Thank for your help !

like image 477
Nicolas Henin Avatar asked Sep 11 '13 12:09

Nicolas Henin


1 Answers

We have had mixed success using https://github.com/ethan605/ios-battery-stat, which relies on a private API.

So, you cannot use that if you deploy your app on the Apple Store, but it can be useful when deploying to TestFlight or similar beta-user app stores.

Sami

like image 78
Sami Dalouche Avatar answered Oct 02 '22 13:10

Sami Dalouche