hcakar Posted May 12, 2016 Share Posted May 12, 2016 Hello Everyone, I'm currently using Phaser and first of all Thanks for all developers for Phaser. I've got a problem and wanna share with you guys. I wrote a game and using ScaleManager for full screen. var playScreen = function(game){}; playScreen.prototype = { init: function(){ game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.fullScreenScaleMode = Phaser.ScaleManager.SHOW_ALL; game.state.start('TitleScreen'); }, create: function(){ game.add.image(1830, 16, 'fullScreenExit'); this.fullScreenButton = game.add.button(1830, 16, 'fullScreen', changeFullScreen, this); } } function changeFullScreen(){ if(game.scale.isFullScreen == false){ this.fullScreenButton.alpha = 0; game.scale.startFullScreen(false); } else { game.scale.stopFullScreen(); this.fullScreenButton.alpha = 1; } } This works fine on desktop and android but however on IOS it's not working. Please let me know if you have any advance. Thanks. Link to comment Share on other sites More sharing options...
svatem1 Posted March 8, 2018 Share Posted March 8, 2018 Check out https://caniuse.com/#feat=fullscreen namely the IOS Safari labeled column. Link to comment Share on other sites More sharing options...
svatem1 Posted March 8, 2018 Share Posted March 8, 2018 Aah, necro. Link to comment Share on other sites More sharing options...
Recommended Posts