Jump to content

fullScreenScaleMode on IOS


Recommended Posts

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;

    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;
    } else {
        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. 


Link to comment
Share on other sites

  • 1 year later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...