Open Empereol opened 3 years ago
it only work while your iphone is charging after 14.5
And the problem is with live demo only or simply NoSleep.js stopped working for iOS >=14.4 ??
And the problem is with live demo only or simply NoSleep.js stopped working for iOS >=14.4 ??
not working for some reason after ios 14.4. in the meantime i just put a zero opacity video tag without muted and loop to keep iphone awake.
iOS 14.4 and beyond requires user interaction before the this.noSleepVideo.play() command in NoSleep.js will operate, otherwise an "Unhandled Promise Rejection: NotAllowedError: The request...." will occur.
I am running on iOS 14.7.1, both safari and chrome seem to be not working. Any idea or workaround, please? @richtr
Expected Behavior
Live demo (https://richtr.github.io/NoSleep.js/example/) should work on iOS 14.4 Safari and prevent device screen from turning off when "Wake lock is enabled"
Actual Behavior
Live demo does not prevent device screen from turning off.
How Do We Reproduce?