Skip to main content

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

PWA Support for HTML5 games (2025 edition)

A topic by spillz created 94 days ago Views: 423 Replies: 4
Viewing posts 1 to 3
(+1)

Hi all,

There are some older posts about this circa 2018/2019 but it seems like there hasn't been any progress with PWA. For HTML5 games, PWA provides a way to give our players an optimal experience on their device by letting them install our games as an app that will support fullscreen properly among other features. PWA is supported on iOS, Android, Windows, ChromeOS etc. For basic web games, this is as simple as adding a manifest.json to your zip bundle and an icon that will be displayed on the homescreen and system menus.

Anyway, PWA isn't fully supported out of the box on itch unfortunately. The manifest.json appears to get stripped when the game is loaded in the iframe. However, a workaround is to link your players who want PWA to the itch zone page directly, which will then load the manifest correctly, although I'm not sure how stable the zone page link is . Example game here and the corresponding zone page. On the zone page, on your iPhone you can Share -> Add to homescreen, on Android, and in the Chrome browser on PCs etc the option to install should be in the URL bar.  But it would be great if itch could support that feature directly from the game page itself.

Thanks!

(1 edit)

Interesting, can you use the zone page with Bubblewrap to get an Android store app?  I supposed it's down to how stable the zone page is?
edit: wrong bubblewrap link :s

Haven't used Bubblewrap but the link seems pretty stable so far. Is the advantage of Bubblewrap that you get to list the app on the Android store? I'm not sure if this is something that itch would be happy about long-term though, if it's using their hosting but otherwise bypassing the itch site. My own preference is that itch would properly support PWA from the game page itself.

(1 edit)

I'd also love to get PWA support on itch. This could be as simple as adding an option to open the game in a dedicated tab instead of an iframe. I know this because the option to install an app appears if I open the zone link (that the iframe references) directly.

EDIT: Just realised what the challenge is here... The zone link changes each time a new version of the game is uploaded. That means an installed PWA will not link to newly uploaded versions o.O Hmm... And changing this behaviour is not straightforward, because currently the changing zone link gives us support for things like cache invalidation (which in the case of Unity WebGL can sometimes be quite finnicky otherwise).

launching game directly from itch, probably like .itch –appname “something” could make it to the PWA launcher or other launch option. But not supported yet.

It could maybe done via butler or something, but itch has own wants what to include or policies of their store to be made including the default ones…

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