duongps Posted May 17, 2017 Share Posted May 17, 2017 Hi everybody, Please help me i can not fullscreen on web mobile (android + ios), only work on desktop 1. on Create function: game.scale.fullScreenScaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.refresh(); game.input.onDown.add(gofull, this); 2. function fullscreen: function gofull() { if (game.scale.isFullScreen) { game.scale.stopFullScreen(); } else { game.scale.startFullScreen(false); } }. I tested many times but not work in mobile please help me Link to comment Share on other sites More sharing options...
mattstyles Posted May 17, 2017 Share Posted May 17, 2017 Doesn't work on mobile http://caniuse.com/#search=full although that implies Chrome on Android should work Link to comment Share on other sites More sharing options...
duongps Posted May 17, 2017 Author Share Posted May 17, 2017 I tested on Andoird and IOS not work. Anybody already fullscreen on mobile for phase? Link to comment Share on other sites More sharing options...
tywang2006 Posted May 18, 2017 Share Posted May 18, 2017 It is fine for me, which version are you using. Link to comment Share on other sites More sharing options...
mattstyles Posted May 18, 2017 Share Posted May 18, 2017 7 hours ago, tywang2006 said: It is fine for me, which version are you using. What happens for you on iOS? Which doesn't support fullscreen. I scanned through the Phaser code, does it just try to make your canvas fill the viewport? i.e. you still have safari chrome visualised? Link to comment Share on other sites More sharing options...
duongps Posted May 19, 2017 Author Share Posted May 19, 2017 i am using Phaser v2.6.2 In html file i using Phaser.CANVAS and also test meta tag not effect <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> I tested in web mobile : safari and chrome. I checked in Android device already ScaleManager with supportsFullscreen = true, and in IOS supportsFullscreen = false. But both Android and IOS device can not full screen Link to comment Share on other sites More sharing options...
Recommended Posts