|
|
#1 |
|
Battery Level low resolution?
Hi Guys,
I have just got battery monitoring working for the first time. Am I the only one who's seeing the level go down in increments of 5% ? I might think this is normal, and we just didn't get the same tool Apple uses, but also, when plugged into a power source, I don't see a negative number, just the battery level. So it's 100%, 95%, 80%, 75%, and so on.... Thanks, Art.
__________________
Mac Mini, iPhone 4S, iPhone 5, iPad 3rd Gen, iPad mini. |
|
|
|
0
|
|
|
#2 |
|
That sounds right. I think iOS takes that number and combines it with data about how long the screen has been on an how long it's been plugged in to display the 1% increment it shows the user. I know I've seen my iPhone shut off moments after it said it was at 5% more than once.
|
|
|
|
0
|
|
|
#3 | |
|
Quote:
How do you detect it's plugged in? I've never seen a negative number in the battery level value.
__________________
Mac Mini, iPhone 4S, iPhone 5, iPad 3rd Gen, iPad mini. |
||
|
|
0
|
|
|
#4 |
|
Have you looked into UIDeviceBatteryState yet?
__________________
|
|
|
|
0
|
|
|
#5 | |
|
Quote:
It might be that Apple is using other factors to estimate remaining battery, but it might also be that they use a completely different private API. My money is on the private API.
__________________
Regards, Duncan Champney, WareTo. Check out our latest iOS app, Face Dancer, available for free on the App Store. |
||
|
|
0
|
|
|
#6 | ||
|
Quote:
are creating the potential for an App to say one thing, and the springboard to say another? Whatever they are doing, they could share that value with us. Quote:
value if the device is plugged in. I still haven't seen that. Thanks though, I'll want to know the charging state.
__________________
Mac Mini, iPhone 4S, iPhone 5, iPad 3rd Gen, iPad mini. |
|||
|
|
0
|
|
|
#7 | ||
|
Quote:
Battery level ranges from 0.0 (fully discharged) to 1.0 (100% charged). Before accessing this property, ensure that battery monitoring is enabled. Quote:
__________________
Regards, Duncan Champney, WareTo. Check out our latest iOS app, Face Dancer, available for free on the App Store. |
|||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 10:56 PM.








Linear Mode
