2

how to detect wireless charging new iPhone8/X on iOS 11? In the UIDevice class there is no this information

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220

2 Answers2

2

As for now there is not any data for detecting this. On your UIDevice.current object you currently have batteryState which is an enum of UIDeviceBatteryState which currently have:

  • unknown
  • unplugged
  • charging
  • full

Maybe Apple will add wireless charing to it in the future.

Rashwan L
  • 38,237
  • 7
  • 103
  • 107
0

At the moment there's only one unofficial robust Chargifi API for wireless charging control and iOS notifications.

Look here for other useful info about Chargifi API and Chargifi SDK.

Let's wait until WWDC 2018 begins. I suppose AirPower wireless charging pad built on Qi standard will be released at that moment.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220