Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Addressbar issue iOS Fullscreen


Rudrabhoj Bhati
 Share

Recommended Posts

I am having issues with Fullscreen on iPhone. Addressbar and navigation is still visible :/

Create function of all states have this:

this.local_control.game.input.onDown.add(this.local_control.full_mode, this);

 

full_mode function reads something like this:

full_mode: function() {
		if(!this.game.device.desktop) this.game.scale.startFullScreen();
	}

 

From preload of the boot state

if(!this.local_control.game.device.desktop) {
			this.local_control.game.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT;
			this.local_control.game.scale.pageAlignVertically = true;
			this.local_control.game.scale.pageAlignHorizontally = true;
			this.local_control.game.scale.forceOrientation(true,false);
			this.local_control.game.scale.forceOrientation(true,false);
			this.local_control.game.scale.enterIncorrectOrientation.add(this.local_control.screens.wrong_orientation, this);
			this.local_control.game.scale.leaveIncorrectOrientation.add(this.local_control.screens.correct_orientation, this);
			this.local_control.game.scale.fullScreenScaleMode = Phaser.ScaleManager.EXACT_FIT;
		}

 

Fullscreen works fine on Android (Chrome). It works fine on both desktop firefox and chrome too when you remove the condition of being a mobile to go fullscreen.

No idea why it isn't working in iPhone. Testing in 5s. I tried Phaser 2.4.4, 2.4.5 and 2.4.7, all gave same result.

If you have an iOS device, then please help test if the fullscreen works on this game (Icy Babel).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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