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