How to get battery level with 1 % accuracy .
[UIDevice currentDevice].batteryLevel
Will give battery level with accuracy of 5%. But i recently used Battery Doctor App on my iphone 4S running ios 5.1, which is giving battery level with 1% accuracy . Anyone has any idea , how can we get that accuracy ... I have tried and searched a lot but not getting how they are calculating it .. Thanks in advance...
Go to Settings > Battery, then turn on Battery Percentage. On an iPhone with Face ID, the battery percentage appears inside the battery symbol on the status bar. Tip: On iPhone models with Face ID, you can also swipe down from the top-right corner to quickly view the battery percentage in Control Center.
There's only one thing that you can do to keep your iPhone's battery health at 100%. Stop using your iPhone. Yup, the only way you're going to keep your iPhone's battery at 100% is to stop using it and charging it.
Very accurate, basically the iPhone iOS software learns your usage habits and calculates an accurate battery health percentage by seeing how quickly the battery drains compared to how it was before. 82% battery health for a 4 year old iPhone looks very normal, that seems just about right.
Starting with iOS 8,
[UIDevice currentDevice].batteryLevel
provides 1% accuracy :)
If you turn off Setting->General->Usage->Battery Percentage, Battery Doctor shows your battery level with %5 precision...So I guess that they are running some image recognition algorithm for the upper right corner of the device, where the battery percent is shown.
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