The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I've made a simple game and have put it on my WebApp, the entire game and its relationship with ReactJS have been a smooth transition. After doing this I've decided to revisit some old things and missing features, one of which was mobile optimization I ended up concluding that for most devices a simple function OS.setwindowfullscreen(!OS.window_fullscreen) does the job!

However this is not the case on Apple phones, how does one go about changing this?
Is it even possible to make them fullscreen?

A really simple function attached to a ToolButton (used it due to its transparant nature)

func _on_FullscreenEnter():
OS.set_window_fullscreen(!OS.window_fullscreen)
$Fullscreen.hide()
$FullscreenExit.show()

func _on_FullscreenExit_pressed():
    OS.set_window_fullscreen(!OS.window_fullscreen)
    $FullscreenExit.hide()
    $Fullscreen.show()

As stated this works well on all devices excluding Apple

in Engine by (27 points)

You mentioned WebApp ... so what browser on iOS? Have you tested several browsers on iOS?

1 Answer

+1 vote

However this is not the case on Apple phones, how does one go about changing this?
Is it even possible to make them fullscreen?

One way to achieve this would be to export the project as a progressive web app and tell the user to add the website to their home screen. This will be available in Godot 3.4 and later (it's already in 3.4beta2).

by (12,878 points)

Well that sucks, is it easy to transfer projects between versions? And is beta 2 available for the public? I'm only seeing a download link for beta 1

And this is not really a web app/game that people would use as their home as it is a play once a day type of game which has IRL rewards hence the format of the game. From what I've found though research by now it seems that IOS dislikes PWA's and does not give them control over many aspects which android does.

The 3.4beta2 downloads are here: https://downloads.tuxfamily.org/godotengine/3.4/beta2/

You can seamlessly upgrade a project from 3.3.2 to 3.4beta2, but make a backup (or use version control) beforehand.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.