Full screen issue with web export in Godot 4.3 when viewed on iPhone

Godot Version

4.3

Question

I downloaded the new 4.3 release and imported my project and then exported a web version. In 4.2 the web version would not load anything on iPad or iPhone.

The good news is that it now works great on iPad!

The bad news is that on iPhone the full screen capability does not function.

I am using this code to set full screen inside of a _button_pressed() function:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)

Thanks!

What iPhone model did you test this on, and which iOS version is it running? Which iOS version is the iPad running (for comparison)?

1 Like

iPhone 13 Pro on the latest 17.6.1
iPad is 9th generation and running 17.6.1

Is there any other information that I could provide to help figure this out?

I am still looking for help with this if anyone has any suggestions. Thanks!

Some information that I found on the godot github: HTML iOS wont enter fullsceen · Issue #89220 · godotengine/godot · GitHub

As a work around to this you can add this code into the Web Export configuration “Head Include” HTML:

<meta name="apple-mobile-web-app-capable" content="yes">

And instruct users to use the “Add to Home Screen” option in Safari to make an icon on their home screen that will launch your web export in it’s own full screen browser instance.

I believe that the long term correct solution is probably something to do with setting it up as a
Progressive Web App but I haven’t dug into that yet.