Jump to content

Manage iOS landscape fullscreen


Aymeric
 Share

Recommended Posts

Hey guys,

My game is landscape only, on Android no issue, since there isn't navigation bar appearing/disappearing, but on iOS that's an other story.

 

In an update state, I output the game.width & game.height and they have always the same value if the navigation bar is here or not.

 

Is there any way inside Phaser to manage this or should I use an external lib like Scream? Thanks!

Link to comment
Share on other sites

Hi, what iOS version are you using? As far as I remember you cannot hide navigation bar in iOS 8...

 

game.width and game.height probably will return always the same numbers as these are your game resolution. It is then scaled to device screen. To get screen space resolution try: window.innerWidth and window.innerHeight.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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