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
Fullscreen doesn't work in mobile phone #4355
Comments
Which browser? and which version of Android? Support is limited on mobile. If the device + browser don't support it, there's nothing that can be done. |
Uh, Browser is chrome And android versions are 6 and 8 |
Same here.
Console output is two-fold:
and
I've done some investigation and it seems to occur in the function startFullscreen (specifically line 69015 in phaser.js:
Desktop seems to work fine. I've tried setting the fullscreenTarget to document.documentElement, as well as not setting it at all. Furthermore, I'm not able to get console outputs, but iPad+Safari and Mozilla Firefox emulator don't appear to work either. |
iPad and iPhone work fine for me on real devices. The Android issue is weird because it is coming from a user gesture in that demo. I could understand the error if it was being called automatically without a gesture. |
I'm getting the same thing.
Pushing the fullscreen button changes the button to the "return to fullscreen" version, but nothing actually happens. |
I get this error MESSAGE: Uncaught TypeError: Cannot read property 'isFullscreen' of undefined |
Looking at this today. It's interesting. If you tap anywhere on the canvas first (before tapping the fullscreen button) and THEN tap the fullscreen button, it works perfectly. If the very first thing you do is tap the fullscreen button, it errors. So, something appears to be getting in the way of the first tap, because the code path is identical. I'm guessing maybe the web audio unlocking. |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the Please note the updated documentation + example regarding this feature on mobile. |
The full screen api doesn't seem to work in android phone.
I used the example from https://labs.phaser.io/100.html?src=src\scalemanager\full%20screen%20game.js
The text was updated successfully, but these errors were encountered: