EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep
264 stars 106 forks source link

allowSleepAgain not working on iOS? #36

Closed adcuz closed 7 years ago

adcuz commented 7 years ago

Hi,

I am having an issue with allowing the device to sleep again after activating keepAwake(). The call to allowSleepAgain() works, and the success callback is called, however the screen stays on indefinitely.

This is happening on an iPhone (iOS 10.2). Is anyone else having the same issue?

Thanks

adcuz commented 7 years ago

This was my own error, I was debugging via USB, which keeps the screen awake.