Nellykey Posted March 15, 2017 Share Posted March 15, 2017 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 Link to comment Share on other sites More sharing options...
ade2 Posted March 16, 2017 Share Posted March 16, 2017 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 Link to comment Share on other sites More sharing options...
Insi Posted March 22, 2017 Share Posted March 22, 2017 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 Link to comment Share on other sites More sharing options...
Insi Posted March 23, 2017 Share Posted March 23, 2017 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 Link to comment Share on other sites More sharing options...
Anna Liu Posted March 30, 2017 Share Posted March 30, 2017 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! Link to comment Share on other sites More sharing options...
FakeWizard Posted April 27, 2017 Share Posted April 27, 2017 same here, unable to switch to fullscreen on my Huawei Honor 8, Android version 7.0, Chrome v.57.0.2987.132. Link to comment Share on other sites More sharing options...
Recommended Posts