I'm using MobileDevice.framework in an OS X application and I've been able to get how charged the battery of an iOS device connected over USB is using the AMDeviceCopyValue(device, domain, key) function with the arguments "com.apple.mobile.battery" for the domain and "BatteryCurrentCapacity" for the key.
I want to also get the number of Charge Cycles on the battery. I believe it's possible because iBackupBot is able to fetch that data. Does anyone know how it does this? I downloaded the free copy of the program and tested it on an iPhone 3GS, iPhone 4S, and an iPhone 5. It was able to grab the data for all three devices.
I have run iBackupBot through LLDB and logged its every usage of AMDeviceCopyValue(). In doing so, I determined that it isn't getting the Charge Cycles count from that.
I guess You are talking about to get devices battery status, After enabled
batteryMonitoringEnabledof UIDevice object you can get current state and level of the battery ,Like,
There is different UIDeviceBatteryState of device from you can get