How can I programmatically download the native battery consumption of an iOS app?

Is there a public API that I can use to extract my own battery consumption for your application directly in the code, for example, in an iOS application?

An example of what Apple can provide through the settings: http://img.wonderhowto.com/img/63/90/63537324981100/0/view-battery-usage-stats-for-individual-apps-your-iphone-ios- 8.w654.jpg

If not, how can I easily track battery usage in my application? Are there any private APIs for this?

Thanks for the help!

+6
source share

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


All Articles