1

I make battery control program. And I need to confirm function that battery control when battery unplugged.

I want get status that full, charging, unplugged, and unknown.

In debugging, I can see status that full and charging, because I connect iPad and Mac in USB.

If I disconnect usb, then I cannot debug.

How can I debug battery when unplugged?

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • I guess there is a wireless debugging too for that you will not need any USB to run the app into device. Also use charger for charging the device instead of connecting it with USB. – TheTiger Jun 19 '19 at 07:55

1 Answers1

0

Here is an apple documentation for wireless debugging: https://help.apple.com/xcode/mac/9.0/index.html?localePath=en.lproj#/devbc48d1bad

Steps to set up iPhone, iPad, or iPod touch

  1. Choose Window > Devices and Simulators, then in the window that appears, click Devices.
  2. Connect your device to your Mac with a Lightning cable.
  3. Check if passcode enables in your device settings.
  4. Enable if not already enabled. In the left column, select the device, and in the detail area, select Connect via network.
Lu_
  • 2,577
  • 16
  • 24