1

Is it possible to find the type of charger(USB Cable,Power Adaptor,wireless car charger ... ) connected to iPhone using ios sdk? I would like to find out the charger details connected to a iPhone.

Ram
  • 1,872
  • 5
  • 31
  • 54
  • What are you referring to exactly when you say "type" of charger? Brand? What it's charging from? etc. – jakenberg Jan 25 '13 at 05:58
  • No, you wont get those details. You can get the battery state only. Check this question http://stackoverflow.com/q/13186203/1730272 – iDev Jan 25 '13 at 07:18
  • So you want to programatically find what type of charger your iPhone is connected to? I DONT THINK THIS is possible using iOS public APIs. Maybe if you jailbreak your iPhone and install Cydia (or other packages), it could be possible. Would you mind telling what you plan to do with this info? How you are planning to use this? – Srikar Appalaraju Jan 25 '13 at 06:00

2 Answers2

2

It looks like it is not possible with ios6 sdk.

Ram
  • 1,872
  • 5
  • 31
  • 54
0

You can check whether the phone is connected to the power source. http://www.uinnoblog.com/programmatic-access-to-battery-level-on-the-iphone.html

Praveen Matanam
  • 2,773
  • 1
  • 20
  • 24