2

I'm trying to test and debug videos on a website that doesn't autoplay because of low battery states of some phones in Safari.

Is there any way of debugging this. I do not actually own an actual iPhone, so i would need to rely on simulators.

I understand the question has been asked before but way back in 2012, so im wondering if there has been any new methods of doing this.

Simulating low battery for iPhones

I have also used the followed settings in the cli to set the battery level in the simulator but im afraid its just a superficial change that doesnt actually simulate a device having low battery

xcrun simctl status_bar <device> override --time "9:41" --batteryState discharging --batteryLevel 9
Viktor Varsano
  • 110
  • 1
  • 1
  • 10
wsgg
  • 934
  • 1
  • 20
  • 43
  • Correct, that only changes the status bar display. The simulator reads your mac's battery level so currently the way to simulate this is to run your mac's battery down. Please file a feedback request for this feature, it sounds like there are some good use cases for it. – russbishop Feb 28 '20 at 04:54

0 Answers0