Skip to content

What your game must allow

Your game runs in an iframe on its own origin, inside the store's play layer. These are the conditions that make that work.

Framing

Your host must let the store frame your page. Do not send X-Frame-Options, and if you send a Content-Security-Policy with frame-ancestors, include the store:

HTTP header
Content-Security-Policy: frame-ancestors https://playium.games

https, on your own origin

  • The listed address must be https://, on your own domain or host, reachable before the listing goes live.
  • It must not be the store's origin: the store refuses to embed a game served from it.
  • The store adds ?lang= with the player's language and keeps the rest of your address.

The sandbox

The frame is sandboxed with allow-scripts allow-same-origin allow-forms allow-pointer-lock, and allows fullscreen, autoplay and gamepad. So your game cannot:

  • open pop-ups or new windows, or navigate the store page;
  • use alert(), confirm() or prompt(): draw your own dialogs;
  • start downloads.

Your page keeps its own storage on its own origin; it never sees the store's session.

The play layer

  • The layer is the whole window under a 56-pixel bar, on a desktop and on a phone 390 pixels wide. Do not scroll sideways at that width.
  • Show when the game is waiting for the model, and why a call did not work.
  • Opened on its own, say that the game is played on Playium and link to its store page, instead of waiting forever.

Next: Listing and review