Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

HTML5 iPad full-screen issues

A topic by Alexander Ocias created 80 days ago Views: 154 Replies: 1
Viewing posts 1 to 2
(1 edit)

When making a HTML5 game “full-screen” on iPhone, as the fullscreen API is unsupported, itch.io just fills the browser window, this is expected behaviour and best practice.

However, on iPad, the fullscreen API IS supported, and itch.io launches HTML5 games on iPad in fullscreen rather than full window, but this has two major caveats:

1. Swiping down exits full-screen, making games with swiping unplayable.

2. Tapping multiple times triggers a phishing protection warning, making even games with basic tapping unplayable.

It would be good if on iPads (just all iOS devices) itch.io just applied the same full-browser-window behaviour that it does on iPhone safari, and did NOT attempt to trigger the full-screen API. If you wanted to just offer a comprehensive set of options you could do [fixed-dimensions, fill-window, full-screen-API].

My ideal flow on iOS is: Game automatically starts in fixed dimensions -> Player presses full-screen button -> Game becomes ‘full-browser-window’

Meanwhile, if anyone has found a workaround for this issue, I would very much like to hear about it.

Found a workaround: if you turn SharedArrayBuffer support in frame options, the game will launch in a new tab and not full screen. You lose a bit of space on mobile to a different wonky frame, but its better than not being able to upload to itch at all, I guess.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.