Nellykey

Fullscreen is not working in Chrome v56 (Android).

Recommended Posts

Hi,

I have a full-screen mode in my game and it works fine before Chrome update. This code still works fine on Firefox on the same device.

I found also that http://phaser.io/examples/v2/display/fullscreen is not working in Chrome v56 too.

Have you met this issue and how you fix it?

I also will be glad if Rich give some answer/comments about this issue.

If it will help you, I also found, that fullscreen works JUST if you click a border between the game and background (not the game and not a background, just a place where they connects together).

Best wishes, NellyKey

6AvWIX7YGcE.jpg

 

Share this post


Link to post
Share on other sites

I'm also having this problem, but with my own game framework using PIXI, but as I understand, Phaser and PIXI are related. Something is making chrome think the event is NOT triggered by user action. I've inspected the browser console and it logs a error warning that the API call to use fullscreen must be called from a user event. The stack trace goes all the way back to the event though.

Chrome 56.0.2924.87 on Android 7.1.1 Nexus 6P Build N4F26T

 

Share this post


Link to post
Share on other sites

Same problem on my own fullscreen mechanism, since chrome 56. Tested on a few Android 4-7 devices.
Looks like Google thinks that we shouldn't use webgl elements to enter fullscreen <_<

Share this post


Link to post
Share on other sites
On 16.03.2017 at 5:23 PM, ade2 said:

I'm also having this problem, but with my own game framework using PIXI, but as I understand, Phaser and PIXI are related. Something is making chrome think the event is NOT triggered by user action. I've inspected the browser console and it logs a error warning that the API call to use fullscreen must be called from a user event. The stack trace goes all the way back to the event though.

Chrome 56.0.2924.87 on Android 7.1.1 Nexus 6P Build N4F26T

 

In my app fullscreen will starts when user interacts whole screen (there is no "fullscreen button"). So I've solve the problem this way:

1. Put renderer to div:

_fullscreenTarget = document.createElement('div');
document.body.appendChild(_fullscreenTarget);
_fullscreenTarget.appendChild(_renderer.view);

2. Add event listener click/tap to div
3. Disable pixi's autoPreventDefault to catch events on div

this._renderer.plugins.interaction.autoPreventDefault = false;

4. When eventListener called just run my old fullscreen mechanism 

document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);

5. Stupid browser thinks that it's legal unlike when canvas interacted <_<

Share this post


Link to post
Share on other sites

I think chrome 56 is a trouble for me.

I use Phaser video in project, but it's can touch play now.

In chrome55, I can touch the screen make the video play.

Anybody have the same trouble with me?

thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.