-
Notifications
You must be signed in to change notification settings - Fork 379
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
Not working with Safari IOS 15.0 #135
Comments
From my quick tests, iOS 15 Safari stays awake only if the video is playing, has no loop flag, is not muted AND is visible on a webpage (also tried absolute positioning with At this point, with no new workarounds available, there's only hope for proper Screen Wake Lock API support somewhere in the future. |
I can confirm, doesn't work since IOS 15 |
Reckon this'll work with a 1x1 mp4? Perhaps it's the new spacer.gif... |
Apparently it's working again on IOS 15.0.1 update! |
Not working for me on iOS 15.0.2. Also I am seeing in Network tab that the video is infinitely fetched? |
Anyone found a solution to this? |
@rhamnett I think if your iPhone is seeing your face, it will not lock. |
@steida thanks, seems you are correct! |
It happens to me too. I have it set that once you press the login button, the function is activated to prevent the screen from suspending. The call and execution seems to work fine, but it doesn't work, and both on IOS and Android and on computers, the screen turns off. |
I can confirm it's not working on iOS 15.1 but on Androids are. |
@brunocarneiro @paulaegido @rhamnett Found a solution. It seems that the
@richtr - I'm kinda too lazy to fork the whole repo, would you apply this to the code? |
@RotemAkerman - Well I guess you are missing something, would need to see the code to help. |
My bad, had the script in |
@z-x Nice! I can confirm it's working now! |
This works on an iPhone 8 but doesn't work on an iPhone SE2020 both running 15.1 |
@z-x where should I put this? I have my NoSleepJS in my custom.js. |
Okey this works for me! Found it in #138 |
Hey everyone, it seems it stopped working. Is it happening with you too? |
It's not working for me in iOS 15.6.1 with NoSleep 0.12. |
@brunocarneiro @dkt01 iOS 15.6.1 seems to be working for https://pushu.ps running as a PWA, the source is open if you want to figure it out by yourselves: https://github.com/z-x/pushu.ps/ |
@z-x That site isn't working on my phone either. It still locks the screen after the time I've configured. |
@dkt01 - on the training screen, right after you click 'Start next training'. I've just checked and left the screen open and it does not turn off. |
@z-x, thanks. I can confirm that that page within pushu.ps does keep my screen awake and unlocked. I'll have to check how my application is misusing the nosleep.js library. |
[ Quote pinoceniccola @ CE 2021-09-28 10:56:16 UTC: [1] Both contemporary and legacy Firefox and Chrome. |
fwiw, i'm using iOS 15.7 and i cannot reproduce this issue. i'm not sure if something changed in later versions of iOS 15, but inserting the video into the document seems not to be necessary anymore... |
Not working with last update IOS 15.0!
The text was updated successfully, but these errors were encountered: