EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allowSleepAgain not working on iOS?

adcuz opened this issue · comments

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

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