Feature availability
Use optional platform services only when the current game is eligible.
Feature matrix
| Feature | Availability |
|---|---|
| Configuration/preferences | Hosted parent bridge |
| Registered gameplay events | Per-game published registry and active session |
| Account rewards | Active signed-in account, matching server rules and caps |
| Purchases | Published eligible product, parent confirmation, account/payment policy |
| Game saves and exit | last-light, tiny-towers, deep-dive, parcel-panic, neon-stack, tiny-traffic, merge-garden, gravity-flip, orbit-rush, water-sort only |
| SDK leaderboard navigation | deep-dive, parcel-panic, neon-stack, tiny-traffic, merge-garden, gravity-flip, orbit-rush, water-sort with mode restrictions |
| Rooms | Conditional launch context; not game networking by itself |
| Server verification | Staff key + trusted game-server validation |
Saves are conditional
Enabled saves accept an object and expected revision, with a 192 KiB UTF-8 JSON limit. loadSave returns revision, value and storage ('account' or 'browser'). saveGame rejects stale revisions; an identical retry of the previously saved value can be acknowledged. Saves are private unverified state and do not mint balances, scores or entitlements. New games currently fail with 'This game does not support checkpoints.' even for exit because those actions share the allowlist.
// ONLY for a game explicitly enabled by the platform, not the new-game starter.
try {
const saved = await PlayIsland.loadSave();
await PlayIsland.saveGame({ ...saved.value, settings: { music: false } }, saved.revision);
} catch (error) {
// On conflict, reload and reconcile; do not overwrite another tab blindly.
console.error(error.message);
}Leaderboard navigation
openLeaderboard accepts daily/endless; parcel-panic also permits mission with an integer 0–19. gravity-flip only permits endless. Other supported slugs/modes are checked by the parent. These methods navigate the top-level website; they do not submit an authoritative score.
Purchases and rewards
requestPurchase(productId) is optional and can be rejected or cancelled. A returned order/status should be interpreted using platform fulfillment, not local assumptions. Browser games cannot emit purchase_, wallet_ or reward_ events to grant value. Live payment and paid prize behavior is configuration-dependent and disabled by default in the codebase.