-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nosleep stopped working on iOS 10.3.1 #217
Comments
Looks like others reporting the same with NoSleep.js, urg. |
This has been fixed in NoSleep: richtr/NoSleep.js#29 |
Just tried the latest nosleep and didn't seem to work for iOS11 :\ |
I experience the same problem on iOS 11.1.2. I took the time to run some tests with nosleep and webvr-polyfills wakelock. webvr-polyfill's built-in wakelock (using location hack) doesn't have any effect - the screen goes to sleep after 40 seconds, every time. With the latest nosleep.js, which uses a video that's seeked randomly after 0.5 seconds, the results get really interesting. I get between ~40 and ~80 seconds before the screen goes to sleep. Because of the variance in the number of seconds I tested a LOT of times. It almost seems like some randomness was added intentionally. Here are my numbers: I'll try out various solutions, to see if I can come up with something the works, here are my current ideas:
|
Update: Using a longer video works. |
great idea! looks like we can do https://github.com/richtr/NoSleep.js/blob/master/src/index.js#L20-L24 (fixed in richtr/NoSleep.js#33) I can take this on, unless someone beats me to it |
The fix you are referring to is included in the latest NoSleep.js-version, which is the one I was testing. It does work to some extend, but it seems like it doesn't fool safari for very long. My idea was to programmatically repeat parts of the base64 string to make the video's duration longer. I'm not entirely sure if it's a good idea though, it will take up some extra memory to store a very long data URI. |
Looks like there's an issue open for iOS11 not working, but possibly fixed in 11.1? Can anyone else confirm? richtr/NoSleep.js#41 |
Fix for iOS 10 ready (immersive-web/cardboard-vr-display#1), will open a new ticket for iOS 11 issues |
Fixed for iOS 10 in 71eb215, 0.10.1 |
…ebvr-polyfill/immersive-web#169), and to disable when on desktop (webvr-polyfill/immersive-web#275) using NoSleep module (webvr-polyfill/immersive-web#217)
New version of iOS has broken the no sleep functionality in polyfill.
The text was updated successfully, but these errors were encountered: