Accurate iOS Battery level using IOKit.framework

Hi,
I want to get iOS battery level for my app .Using UIDevice batteryLevel not able to get the accurate battery percentage.Just got to know that we have one public framework called IOKit.framework (which is available in "frameworks" folder so I am assuming it as public framework). Can I use this framework to get the battery level .
In web, there are lot of talks that this is kind of private framework.so dont use it.Can we use this framework to create appstore iOS app.
Thanks,
Sakthivel

What's wrong with the battery level indicator built into the iOS. Turn it on in Settings.
Settings > Usage > Battery Usage > Battery Percentage > Turn On

Similar Messages

  • Check battery level in Air?

    Is there a way to check a mobile device's battery level using the Adobe Air SDK?

    hi
    unfortunately, it cant be done - but you can vote for it to be added here: http://ideas.adobe.com/ct/ct_a_view_idea.bix?c=9D564F43-979A-4E35-AA21-85A61B6AB8DE&idea_i d=218ADCEA-97AB-411D-BA69-B612896AF86E

  • Is that normal? My iPod touch G5 standby after fully charge 2 hr 58 min. then level battery is 68.5%. (use voice over to read battery level)

    Is that normal? My iPod touch G5 standby after fully charge 2 hr 58 min. then level battery is 68.5%. (use voice over to read battery level)

    I do not understand what "My iPod touch G5 standby after fully charge 2 hr 58 min." means.
    Also % battery is not accurate for an iPod. It fluctuates.
    Maybe this will help:
    iPod Toch 5G (iOS 7.0.3) charges way...: Apple Support Communities

  • Iphone4s shut down at battery level 30% when using 3G

    hi,
    i am gan from malaysia, iphon4s 6.0.1 user, phone age 1.5 years old
    Recently have 1 unique problem to ask for buddy helps in here. thank you 1st for all.
    my iphone4s shut down at battery level 30% when i use 3G service only, turn on 3G service to use around 5 hours to shut down my phone, from 100% - 30%.
    but, it doesnt happen when i turn on my WIFI, or use normally.
    hard reset - done..
    soft reset - done.
    itunes restore - done.
    battery calibration - done.
    battery - it seems not a battery problem because when i use WIFI, or normal use without data, i can use until 1% until phone shut down itself.
    upgrade ios 7.0.4 - the battery could drain more faster if i upgrade to this firmware.
    i have no idea, even i go for apple store, their technical helps are same with my level, except they ask me to change a new iphone, wow..
    anybody in here could help or experience this?

    anyone can help me to solve this problem?

  • I updated my iphone 4s to ios 7.0.4. But now the battery is using 100% power each day? Why?

    i updated my iphone 4s to ios 7.0.4. But now the battery is using 100% power each day? Why? When i connect my iphone to charge the battery the iphone after a few minutes feels very warm. When the iphone is 100% charged in the morning, in de evening the battery is very low. Bluetooth is not on.

    Tips here:
    http://osxdaily.com/2013/09/19/ios-7-battery-life-fix/

  • HT1476 Hi, I have an iPhone 4s running iOS 7.0.4 and the phone keeps going of whenver battery level drops to 20% and it give the warning. It turns off immediately after I dismiss the warning message. I LOCKED THE PHONE AT 21% and I was able to play music

    Hi, I have an iPhone 4s running iOS 7.0.4 and the phone keeps going of whenver battery level drops to 20% and it give the warning. It turns off immediately after I dismiss the warning message. I LOCKED THE PHONE AT 21% and I was able to play music to 4% which means there is no problem with the battery, this seems to be a programming error.
    Earlier suggestion include that the battery has a dead cell but it wouldnt keep playing music for over 2 hours it it had a dead cell.

    My issue with IOS 7.1 and higher is my Bluetooth for the phone still works...no problem but the music does not work with bluetooth...I have an Acura TSX 2010...Acura said there are no incidents reported, but me...I just upgraded to IPhone 6 and still no good....as soon as i hit the AUX button it say USB...not bluetooth...ugh

  • HT1766 phone cannot use once battery level reduced to 30%

    Once the battery level becomes 30% phone goes off & cannot be used. Once connected to the charger it starts from 30% to charge.

    Check out http://forum.java.sun.com/thread.jspa?messageID=9748466
    Regards, Darryl

  • Ios 7 battery drain - using faster than charging now

    Anyone else have issues getting a full charge on iPhone 4S after updating to ios 7.0?
    It's draining noticable faster - battery drains faster than it charges now so that unless you turn off the screen you end up with less charge than when you docked it. Same goes for regular 30 pin cable to 1Amp wall charger without the dock.
    I left mine over night on the iPhone dock and it still only reached 92%
    Never had issues on ios 6.
    Even with the screen dimmed back to 50% (like I had it set for ios 6),
    Battery was at 45% before updated yesterday and even though it was docked and charging during update was at 36% after the update, and kept dropping the longer I had it connected.
    Does anyone know for sure if ios 7 is using the A5 cpu differently? maybe running it faster or using more power than on ios 6?
    Rebooted my iPhone 4S a few times after updating, nosame issue. Was able to use Safari but unable to download from itunes or app store. They asked or my password, but it said "could not connect to app store, please try again". perhaps due to so many users updating yesterday
    Then after opening a few apps (ebay, amazon) battery meter jumped to 100%
    I do have DND enabled for notice center. update retained that preference and my screen lock code.
    I noticed that even though screen lock timeout was set for 2 mins, it was prompting for code immediately. Had to change to 5 mins, since the 2 minute to lock option has been removed in ios 7.
    Thanks,
    JJ

    Anyone else have issues getting a full charge on iPhone 4S after updating to ios 7.0?
    It's draining noticable faster - battery drains faster than it charges now so that unless you turn off the screen you end up with less charge than when you docked it. Same goes for regular 30 pin cable to 1Amp wall charger without the dock.
    I left mine over night on the iPhone dock and it still only reached 92%
    Never had issues on ios 6.
    Even with the screen dimmed back to 50% (like I had it set for ios 6),
    Battery was at 45% before updated yesterday and even though it was docked and charging during update was at 36% after the update, and kept dropping the longer I had it connected.
    Does anyone know for sure if ios 7 is using the A5 cpu differently? maybe running it faster or using more power than on ios 6?
    Rebooted my iPhone 4S a few times after updating, nosame issue. Was able to use Safari but unable to download from itunes or app store. They asked or my password, but it said "could not connect to app store, please try again". perhaps due to so many users updating yesterday
    Then after opening a few apps (ebay, amazon) battery meter jumped to 100%
    I do have DND enabled for notice center. update retained that preference and my screen lock code.
    I noticed that even though screen lock timeout was set for 2 mins, it was prompting for code immediately. Had to change to 5 mins, since the 2 minute to lock option has been removed in ios 7.
    Thanks,
    JJ

  • Px4-300d shuts down/powers off while on UPS battery, regardless of remaining battery level

    Upon line power failure, the UPS is instantly available to supply power to the px4-300d.  The UPS is adequately sized to provide well over an hour of runtime during a power failure.  The only way to have caching operate is to have a UPS connected.  With the UPS connected, the NAS sees the UPS, the current power condition, and an accurate battery power level (%).  Once the power fails, the unit begins its shutdown process and completes gracefully, even though the remaining power in the UPS battery is still near 100%.  The whole point of having UPS backup is to keep the device running for as long as possible during a power failure, and then to gracefully shut-down the device should the UPS battery level reach a critical level and line-power still not restored.  This is MANDATORY to be addressed in the next firmware release, or provide access to a configuration file that specifies the battery level percentage which triggers a shutdown.  Why choose this "Enterprise Quality" storage solution if during a power outage it shuts itself down while everything else is still operating?  Makes absolutely no sense.
    Solved!
    Go to Solution.

    Hi easy-e,
    What is the firmware version on your device currently?
    LifeLine-based network storage devices should remain up and running normally using only UPS battery power until the UPS reports remaining battery is less than 3 minutes or below 5%. At his point, device shutdown will be triggered and your network storage device will gracefully shut down.
    Have you checked to make sure it is compatible?:
    What Universal Power Supply (UPS) models are compatible with my ix or px network device?
    APC UPS not working with network storage device
    If it is not shutting down properly, I would suggest contacting technical support to see if they can troubleshoot the cause of this problem.
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • Help! iPhone 5 restarting by itself! Battery level won't change after charging.

    HELP!
    I have a 3 month old iPhone 5 that was recently updated to iOS 7. After a few days of use, I noticed after a night of charging, which I always do, the battery level indicator and percentage did not change. Next, in my carpool ride in to work, when using the iPhone, randomly the screen would freeze, then turn a random color and would shut off and restart.
    Then all of a sudden it was fine, no issues.
    Then today, the same thing is happening. The battery level, freezing/color changing on the screenscreen/restarting issues are back.
    I don't know whats going on. Never had an issue with any of 3 past my iPhones.
    Thanks in advance,
    Josh   

    I'm sorry, it seems that the problem is that my phone WON'T restore. I just tried restoring again and it keeps giving me the 2001 error. Help.

  • 100% to 65% Battery Level Decrease in Two Hours

    My question is: "Is anyone else seeing rapid battery level drop with iPhone since upgrading to IOS 8?"
    Since upgrading to IOS 8 on Wednesday the 17th, I have experienced RAPID battery level drop between charges.  I am now having to charge my iPhone 5s 32 GB half way through the morning, after lunch and when I get home.  If it weren't for my Mophie Jet Pack, a car charger and a charger at my desk, I wouldn't make it through the day.  Believe me, I have read every battery conservation tip out there. I have turned so many features/functions off that I'm really starting to wonder if IOS 8 is worth it for the iPhone 5S and below.  If I weren't faced with a daunting downgrade process, I would do it.  At least I used to be able to make it to 7 PM on IOS 7 before I put the phone on a charger or flipped on the Jet Pack.
    Using the new Battery Usage report under Settings > General > Usage > Battery Usage   I see that Calendar and Notes apps have taken the lion share of the battery charge over the past 24 hours, and there is a notation stating that the usage was "Low Signal" which I assume means that the phone was trying to do its thing with a poor cell phone signal.  At work, however, I am completely on wi-fi and not cell.  So this isn't very helpful.
    On the other hand, I have an iPad Mini with Retina and an iPad 3rd Gen that have been upgraded.  Neither of them have had any problems.  In fact the iPad 3rd Gen still has 92% charge after sitting in my backpack all weekend long (since being charged Friday morning).  So what I am seeing only seems to affect my iPhone.
    I do remember similar issues with the IOS 7 initial upgrade, which were resolved with subsequent patches/upgrades.

    Thanks Lawrence.  We use CommonTime mSuite to integrate our Lotus Notes with iPhone's Calendar, Contacts and email using the Exchange iPhone connector, and I am one of the administrators for mSuite.  I have deleted and re-added the Exchange account on my 5s running IOS 8 multiple times, and have done the same on an iPad Gen 3 and an iPad Mini.  All with the same results.  (The results are that email comes down, but calendar and contacts do not, and email will reload every so often.)  I've deleted the account on the mNotes server a couple of times as well, to no avail.  I have an old iPhone 4 still running IOS 7.1.2, and setting the exchange account up on it, immediately everything came down successfully from Lotus Notes onto the old iPhone.  This is definitely an IOS 8/CommonTime issue, and CommonTime has acknowledged that there is a problem, though they have as yet no fix.  The one good thing to come of this is I now know what was killing my battery. After 7 hours of use last night (regular use on Facebook and Feedly) my battery had only gone down to 83%. Other of our 46 users who have upgraded to IOS 8 have the same problem as I. 

  • Permanent error after import IOkit framework

    i'm new in this forum.
    I'm trying to work with light sensor in iphone but the only framework that permits it is IOKit.
    i tried to add the framework follow this guide:
    http://ios-blog.co.uk/tutorials/iokit-an-introduction/
    but xcode returns me some error.
    Error's List: http://pastebin.com/TMimhsXF
    i linked the framework in Build Phases and after this i downloaded the header and put in search path(/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/IOKit.framework) the path .
    Now afterward i put the framework ( path of framework)in the framework folder. But when i compiled it xcode returned this error and if i try to remove that framework the problem persist.
    How to resolve this problem?

    Why are you using MacOSX10.6.sdk if you're building an iOS app?

  • IPhone 4S switches off at low battery levels

    Hello everyone,
    My iPhone 4S with less than 2 years is having problems. It powers off when it reaches (not so) low battery levels. It happened at as high as 16% of battery, and although it mostly happens when I try to open apps like Facebook or the Camera, it has happened also with stuff like the Phone app. It gets even worse, because although it still has more than 10% battery charge, the only way to power it up again is by pluging it to the transformer.
    Could this be battery related or is this a know iOS issue? I have been really careful with the battery since day one, so I would expect not to have such problems. It's really annoying, because I now have 85% of battery usage, not 100%, and I never know when it's going to power off next.
    Can anyone relate to this? Any suggestions about what I should try to fix it?
    I'm on the latest update of iOS 7.
    Thanks a lot!

    The best way to test the battery and make sure the level being displayed is as correct as it can be is to let the battery die completely, then plug it in to charge to 100% without using it. After that, see when it powers off. You can also make an appointment at the Genius Bar at Apple or your Authorized Apple Service Provider and they can test your battery.

  • 10.5.8 won't show UPS battery level

    I just installed an APC Smart UPS 1000 VA UPS to my Mac Pro server.  The USB cable is plugged in and the UPS battery is fully charged according to the display on the UPS itself.  The Energy Saver control panel is the APC preferred control method (they do not supply software for MAC OS X after 10.4) and all the controls appear as expected with the exception that the Battery Level indicator at the top of the Prefs panel shows 0% full.
    I've unplugged and plugged it back in to no effect.  I restarted the server.  I turned off the power at the wall switch and the UPS ran the server with no dramas for about 10 minutes.  Nothing I tried had any effect.
    There is nothing in the APC support site other than instructions for using Energy Saver panel.
    Our power here has been pretty flaky this year and I want the server to gracefully shut down after about 10 minutes of an outage.  It won't work if the UPS won't talk to the copmputer.
    Steve

    Have you checked to see if another USB device works on the USB port the UPS is connected to?
    You could try some of the suggestions for USB ports not working:
    USB and FireWire Quick Assist
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    Common fixes for USB device issues (unrecognized, etc.)
    http://www.macfixit.com/article.php?story=20070824012114701
     Cheers, Tom

  • Flex 2 14 Battery Level Dropped from 57 to 7 in seconds

    I've been using my Flex 2 14 for around 3 months. However, recently I've encounter a situation whereby my battery level had dropped from 57% to 7% in split second when I'm not plugged in. I was wondering could it be an manufacturing defect and what should I do to fix this problem?
    Note: I use this laptop while plugging into the charger most of the time. The battery level is usually kept at around 55~60 only with the help of energy manager. Also, I had performed battery gauge reset once. 
    Any suggestions will be appreciated.

    SOLUTION FOUND !
    I just found a solution to my battery issue that is apparently due to a bug on the latest update of Snow leopard (10.6.8). Parallels desktop that was in the Dock was making the Dock taking 100% of the CPU activity (checked in the activity monitor) using battery and heating my computer.
    After I checked for such cases on teh web (see: http://forums.macrumors.com/showthread.php?t=1181176 ), I removed Parallels Desktop and Windows Applications folder from the Dock and situation seems to be back to normal...
    RF

Maybe you are looking for

  • Unix command (in PHP)?

    Im trying to build a script that will monitor a folder for files that are dropped into it and write to a log file when a new file is dropped{ File name, current time:for when it was dropped, and creation date}. From the file I will have PHP get the f

  • About updating  long text  in the document item  with bdc of fb02

    HI, I have a question about updating  long text  in the document item of sap: Can I directly updating the long text information with the fuction save_text? The long text is in : tcode: fb02 -->input document no ... --> Document overview --> select on

  • Code too large  for public void _jspService

    the file size is 820Kb.it was not getting compiled with a jasper compiler so i used a plain javac to try and compile and even that failed.Previously i had done the same for a 640k file and javac had worked fine but now it doesnt.Does even javac has a

  • When the FLASH PLAYER install in half ,then fail

    The      Flash Player install in 50%it said(please close following progams to continue --internet explorer

  • Using Bridge without other CS3 Applications?

    I work for a advertising company, and we have project managers that need access to the creative assets on a centralized server running Version Cue Server CS3. It would be ideal if they could access the server via Bridge for PC or Mac, but obviously t