本文介绍了如何获得iOS应用的电池消耗值(x mAh / min)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在努力改善我们正在开发的应用的电池使用情况。



我发现的唯一一个是越狱解决方案的百分比(,它依赖于私有API。



因此,如果您在Apple上部署应用程序,则无法使用它存储,但在部署到TestFlight或类似的beta用户应用商店时非常有用。



Sami


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 :

Is that even possible ?

Thank for your help !

解决方案

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

这篇关于如何获得iOS应用的电池消耗值(x mAh / min)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 02:53