Skip to main content

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

"web-share" in "allow" attribute

A topic by Laura Laureus created Jun 28, 2024 Views: 93
Viewing posts 1 to 1
(1 edit)

Hi!

I'm developing WebGL games, primarly intended for mobile devices. In these kind of devices the JS "Navigator.Share" should be available but it needs the "web-share" value to be in the "allow" attribute of the itch.io's iframe for webgl games.

Here the W2C reference: https://www.w3.org/TR/web-share/#enabling-the-api-in-third-party-contexts

This feature will help to promote games via mobile native Social Share in a  similar way to this image. 

This image shows the navigator.share in Blue Stacks 5, Android 11 Chrome 103.

In newer browser the already mentioned "allow:web-share" is required.


Thank you for your time!