Changelog
SDK v1.7.0#
Additive, no change to your code. New calls: SDK.analytics.track(name, params?) records a custom game event (fire-and-forget; an invalid or over-limit call is dropped silently). SDK.data.mirrorIndexedDB(options?) mirrors IndexedDB databases into the cloud save, for engines that save there (Unity, Godot, GameMaker); await it before the engine starts. SDK.game.room.addLeftListener(cb) and removeLeftListener(cb) tell the game when the portal ended the player's room membership (left, kicked, closed, disconnected). showInviteButton(params, { portalOnly: true }) and hideInviteButton({ portalOnly: true }) show or hide the portal's invite button without creating or changing a room. The engine plugins moved to 1.7.0 with the room left event and a track binding in every engine; mirrorIndexedDB is not bound in the plugins yet. See versioning.
SDK v1.6.4#
Additive, no change to your code. SDK.user.submitScore takes an optional delayed field, so a score earned offline is not lost: a second copy of the score, sealed at the end of the run, that the portal keeps on the device for a signed-in player and sends when they are back online, within 72 hours. It counts for the all-time board only, not the weekly board, applies to boards with an encryption key, and is never kept in kids mode or for guests. A malformed delayed is dropped and the normal score still goes through, and a portal older than 1.6.4 ignores it. See leaderboards. Local mode changed too, and you will notice it when you test: it now refuses a midgame ad with adCooldown until the game has called gameplayStart() (or 30 seconds of visible page time have passed), as the portal does, and it shows "Score saved offline" for an offline signed-in submitScore that carries delayed. Three small additions: every add<Thing>Listener method returns a function that removes the listener, window.ZokoGames.SDK_VERSION holds the version string, and SdkError.code autocompletes the known codes. The engine plugins need no update (they do not pass delayed yet). https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.6.4 automatically. Pinned: https://sdk.zokogames.com/1.6.4/zokogames-sdk-v1.js.
SDK v1.6.3#
Clearer messages, no change to your code: no name, type, error code, return value or timing changes. The sdkDisabled message now says why the SDK is disabled and links the local testing page, and the one-time "Disabled" console line tells you to add ?useLocalSdk=true to the page address when local mode is the way out. invalidArgument messages say what was received (for example got "interstitial"), and the banner invalidSize message lists the allowed sizes. Three new one-time console warnings, which never throw: ad.requestAd called with callbacks that can never run (a bare function, a misspelled name such as onFinished, or a value that is not a function), user.getUserToken called with something other than an options object, and, in local mode, a misspelled scenario switch value such as ?user_response=guest. Local mode also logs each user.submitScore call, and its start-up line now says submitted scores are only logged. One fix: ad.requestAd now resolves when the callbacks object cannot be read (for example a revoked Proxy); before, such a request stayed pending for ever. https://sdk.zokogames.com/zokogames-sdk-v1.js served 1.6.3 automatically until 1.6.4 was released. Pinned: https://sdk.zokogames.com/1.6.3/zokogames-sdk-v1.js.
SDK v1.6.2#
Additive, no change to your code. SDK.game.gameId is a new read-only string with the portal's id for your game ("local-game" in local mode). The SDK now writes one-time console notices (once per page each, no player data): why it ended up disabled, a member used before init() resolved, and a cloud save that failed to sync and will be retried. Host names with a reserved label at any depth (for example x.g-<slug>.zokogames.com) no longer count as the portal. Two fixes: an ad request that already ended (timeout, error or finished) now ignores later host events, so a late adStarted no longer keeps banners refused with videoAdPlaying; and showAuthPrompt() asks the portal who is signed in, so it opens the sign-in dialog after a sign-out in the portal instead of rejecting with userAlreadySignedIn. Games on the portal need no change, and the engine plugins need no update (they do not wrap gameId yet). https://sdk.zokogames.com/zokogames-sdk-v1.js served 1.6.2 automatically until 1.6.3 was released. Pinned: https://sdk.zokogames.com/1.6.2/zokogames-sdk-v1.js.
SDK v1.6.1#
Security hardening, no change to your code. The SDK now accepts the start-up handshake only from a ZokoGames page (not a game host g-<slug> or the preview runner), from a local host when the game itself runs locally, or from the game's own origin, so a site that frames your game can no longer pose as the portal. One trailing dot on a host name is tolerated. Also fixed: SDK.ad.requestAd(type, null) no longer throws, and the descriptions of the banner errors missingId and notCreated are corrected. Games on the portal need no change, and the engine plugins need no update. https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.6.1 automatically. Pinned: https://sdk.zokogames.com/1.6.1/zokogames-sdk-v1.js.
SDK v1.6.0#
Rooms open to friends, no change to existing code. The room host can call SDK.game.updateRoom({ isPublic: true }) so friends can join from their friends list without an invite; rooms are private by default, and in kids mode they always stay private (see multiplayer rooms). The engine wrappers move to 1.6.0 together: Construct 3 adds the action Set room public, Unity ZokoRoomUpdate.IsPublic, and the other wrappers pass isPublic through their room update. Pinned: https://sdk.zokogames.com/1.6.0/zokogames-sdk-v1.js.
SDK v1.5.1#
Local-mode test events, no change to your code. Local mode fires settingsChange, joinRoom and offlineChange when the page dispatches zokogames:local-settings, zokogames:local-join-room or zokogames:local-offline on window, so those listeners can be tested without the portal (see local testing). Nothing changes outside local mode, and the engine wrappers stay at 1.5.0. The Preview tool can now also run a build zip from your computer without uploading it. Nothing to do: https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.5.1 automatically. Pinned: https://sdk.zokogames.com/1.5.1/zokogames-sdk-v1.js.
SDK v1.5.0#
Kids mode and a leaderboard row type, no change to existing code. SDK.game.settings.kidsMode is typed: true when the game runs in kids mode, also in the settings listener; where it is undefined, fall back to disableChat. Local mode reads ?kidsMode=true, and the Preview tool has a kids-mode switch. The new type LeaderboardEntry describes one row of the leaderboard JSON endpoints, with isYou and the opaque per-game userId (a type only; the SDK has no leaderboard read call). Every engine wrapper 1.5.0 exposes kidsMode. See versioning. Pinned: https://sdk.zokogames.com/1.5.0/zokogames-sdk-v1.js.
SDK v1.4.1#
Robustness fixes, no changes to your code and no API change. Inside the portal the SDK now waits up to 15 seconds for the portal's answer to init() instead of 1.5 seconds, so a slow connection no longer leaves the game disabled. gameplayStart, gameplayStop, happytime, loadingStart, loadingStop and leftRoom resolve with a console warning instead of rejecting when the portal does not answer in time. Cloud saves write faster and a failed sync is retried on its own. getUserToken keeps one token per key type and forgets it when the player signs in. A few invalid arguments (NaN in setGameContext, sizes given as strings, values that cannot be copied) are refused with invalidArgument or invalidSize. The compatibility shim no longer rejects requestAd when an adError callback throws. Nothing to do: https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.4.1 automatically. The engine wrappers move to 1.4.1. Pinned: https://sdk.zokogames.com/1.4.1/zokogames-sdk-v1.js.
SDK v1.4.0#
Chat reports, feedback screenshots and a localStorage bridge. Adds SDK.game.reportChat({ reportedName, message, reason, reportedUserId, roomId, context }), which sends a chat message to the portal's moderators (limits and error codes under reporting chat); SDK.game.onScreenshotRequest(handler), which lets your game supply an image when the player opens the portal's feedback form (scaled to 1280 px and 1.5 MB by the SDK; see feedback screenshot); and SDK.data.mirrorLocalStorage({ keys, prefix }), an opt-in switch that copies a ported game's localStorage saves into the cloud save and restores newer cloud values (see mirroring). Additive: nothing runs unless you call it, older games are unaffected, and the script grows by about 9 KB. Nothing to do: https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.4.0 automatically once released. Pinned: https://sdk.zokogames.com/1.4.0/zokogames-sdk-v1.js.
SDK v1.3.1#
Reliability fixes, no changes to your code. An ad request (requestAd) now ends with adError and the code timeout when the portal neither answers nor starts the ad within 30 seconds, so your game can resume instead of waiting forever; once an ad has started there is still no time limit. A malformed message from the portal is ignored instead of throwing an error in your game. Calling SDK.init() on a page that has no browser window (for example while a server renders the page) resolves as disabled instead of failing. If the script tag is loaded twice, the first copy is kept and window.ZokoGames.SDK is no longer replaced. The module build also exports ERROR_CODE_DESCRIPTIONS, one plain-language line for every error code. In local mode the console prints one hint that says what is simulated. Nothing to do: https://sdk.zokogames.com/zokogames-sdk-v1.js serves 1.3.1 automatically, and the 1.3.0 files stay available at their pinned address. The engine wrappers move to 1.3.1 with no API change. Pinned: https://sdk.zokogames.com/1.3.1/zokogames-sdk-v1.js.
SDK v1.3.0#
Room data channel. Adds SDK.game.room: send(data, { to }), onMessage, setState, getState, onState, members, onMembers, isHost, onHostChange, selfId and onError (each on* also has an add<Thing>Listener / remove<Thing>Listener pair), so the players of one room can exchange small JSON messages (8 KB, 20 per second per player) and share a host-written state (64 KB) through the platform. The platform assigns the sender, a sequence number and a timestamp; the first player is the host and the role migrates when the host leaves. New error codes notInRoom, notHost, payloadTooLarge, stateTooLarge, unknownMember and roomUnavailable. Local mode connects tabs of the same origin through a BroadcastChannel. Additive: older SDKs and portals keep working; on a portal without the channel game.room.send rejects with unexpectedError. The engine wrappers move to 1.3.0 with game.room bound in Phaser and Cocos Creator and JS-only in the others. Pinned: https://sdk.zokogames.com/1.3.0/zokogames-sdk-v1.js.
SDK v1.2.0#
Offline awareness. Adds game.isOffline, game.addOfflineListener(fn) and game.removeOfflineListener(fn); local mode mirrors navigator.onLine and accepts ?offline=true. Additive: older SDKs and older portals keep working, and isOffline is false when the portal does not send the flag. Pinned: https://sdk.zokogames.com/1.2.0/zokogames-sdk-v1.js.
SDK v1.1.1#
Fixes only. The banner refresh floor (30 s) and session cap now hold when a banner is cleared and requested again, and local mode reads instantJoin=true and invite parameters from the page URL. Pinned: https://sdk.zokogames.com/1.1.1/zokogames-sdk-v1.js.
SDK v1.1.0#
Additive release; nothing from 1.0 breaks. Latest alias: https://sdk.zokogames.com/zokogames-sdk-v1.js; pinned: https://sdk.zokogames.com/1.1.0/zokogames-sdk-v1.js.
- New
SDK.storemodule (isAvailable,getCatalogItems,getPlayerInventory,buyItem,consumeItem,setSandbox,getPurchaseToken) and its error codes. store.getPurchaseToken()returns the purchase token;user.getXsollaUserToken()arrived with it as a deprecated alias for ported code. See the migration note.- New
SDK.game.loadingProgress(0..100),?ad_response=in local mode, and the exportedERROR_CODEStable. user.getUserToken({ signingKeyType })now sends the key type to the portal;submitScoreaccepts an emptyencryptedScorefor boards without an encryption key.- Docs: a complete runnable quick start, exact local mode rules and an expanded troubleshooting page.
SDK v1.0.0#
First release of the ZokoGames SDK and developer portal.
SDK
- Script URL
https://sdk.zokogames.com/zokogames-sdk-v1.js, globalwindow.ZokoGames.SDK. - Environments
zokogames,localanddisabled, with query overrides for local testing andsdk_debuglogging. - Ad:
requestAd(midgame, rewarded) withadStarted,adFinished,adError;hasAdblock. - Banner: static and responsive banners,
clearBanner,clearAllBanners; 30 second refresh interval and a 60 refresh session cap. - Game:
gameplayStart/Stop,loadingStart/Stop,happytime,reportGameCompletedPercentage, game context, settings with change listener, rooms, invite links and join listener. - User:
getUser,systemInfo,listFriends, signedgetUserTokenwith JWKS athttps://www.zokogames.com/.well-known/jwks.json,showAuthPrompt,showAccountLinkPrompt, auth listener,submitScore. - Data: cloud save with a
localStorage-shaped API, 1 MiB limit, background sync. - Analytics:
trackOrder. - Error codes including
dataLimitExceeded,bannerCooldownandadCooldown.
Compatibility shim
zokogames-compat-v1.jslets a game written against another portal's v3-style SDK keep its call sites. See migrating.
Engines
- Wrappers for Unity, Godot 4, Construct 3, GameMaker, Cocos Creator, Defold and Phaser 3, built from one shared bridge. They have not yet been compiled against every engine release, so expect small fixes on first import and report them through support.
Not in v1.0.0
- In-game purchases (added later, sandbox only today, see in-game purchases).
What changed in the docs#
Short list, newest first. Every page also shows its own last-updated date.
- 23 November 2026, SDK 1.7.0 documented. The analytics, data, game and multiplayer pages describe the four additions; the engine plugins are at 1.7.0.
- 23 November 2026, SDK 1.6.4 documented. The leaderboards and user pages describe
delayed(what it is, how to seal it, which boards and players it applies to, the 72 hours), the offline play and leaderboard setup guides say what happens to a score offline, and local testing and ads say that local mode now applies the midgame rule and shows "Score saved offline". The game and user pages show that the listener methods return a remover, and versioning has the release notes. - 22 November 2026, midgame ads wait for
gameplayStart. A change on the site, not in the SDK (no SDK version changes): the portal refuses a midgame ad request withadCooldownuntil the game has calledSDK.game.gameplayStart()once in that game window. A game that never calls it gets midgame ads 30 seconds after play begins. Rewarded ads are not affected. Local mode did not apply the rule until SDK 1.6.4; from 1.6.4 it does. See Gameplay first and the advertisement rules. The pages for kids mode, the Unity and Defold version constants and theorderanalytics event were corrected in the same pass. - 22 November 2026, SDK 1.6.3 documented. The SDK pages show the new error and console messages (what was received, and what to do), troubleshooting lists each new console line with its fix, and versioning has the release notes. New guide: team and roles.
- 22 November 2026, SDK 1.6.2 documented. The SDK pages describe
SDK.game.gameId, the one-time console notices and the reserved-label rule, the local-testing page lists the notices, the data page names the reserved__zoko_ls_mirror_tskey thatmirrorLocalStoragewrites, and the game, user and leaderboards pages are corrected (updateRoomtakes a booleanisPublic; the game id is readable asSDK.game.gameIdfrom 1.6.2). - 21 November 2026, one text editor and Markdown in the API. Description, controls, FAQ answers, release notes and the studio description now use one Markdown editor with a fixed set of formatting; see text formatting. The developer API returns Markdown for
description(game detail) andrelease_notes(builds). Older values stay HTML (plain text for release notes) until they are saved again, so sanitise what you render. - 20 November 2026, engine plugins 1.6.1. Every engine plugin moves to 1.6.1 and still targets SDK 1.6.0; game code needs no change. The plugins were checked against each engine's official documentation and fixed: Unity (runtime assembly references uGUI, static state reset when Domain Reload is off,
.metafiles shipped), Godot 4 (loads again in 4.0 and 4.1, the autoload survives closing the editor; portal builds need 4.3 or newer), Construct 3 (the addon loads, its DOM script is registered, every action can be awaited; r397 or newer), GameMaker (the simulator uses the extension#defineformat, events never arrive while a call is still running), Defold (Lua callbacks run with their script instance). Cocos, Godot 3 and Phaser have no code change. Download the new files from each engine page; each plugin's CHANGELOG lists the details. - 20 November 2026, paid and held-back amounts. The
statement.updatedwebhook has two new fields for a paid statement:paidMicros, the amount actually sent, andheldBackMicros, the part the new-studio holdback kept back. The statements list of the developer API has the same two amounts aspaid_minorandheld_back_minor.payableMicrosandpayable_minorkeep their meaning, the full payable amount. The new fields arenulluntil the statement is paid. Nothing else in the payloads changed. Clients that validate responses strictly against the published OpenAPI document (objects closed withadditionalProperties: false) must allow the new fields, for example by regenerating from the current document. Webhook handlers should ignore fields they do not know. - 20 November 2026, amounts too large to state exactly. The
statement.updatedwebhook can carrypayableMicros: null, and the developer API statements endpoints can answer409 amount_unsafe, for a statement whose amount is outside the exactly representable range and is settled by hand. Treatnullas unknown, never as0. See statements, PDFs and sandbox payouts. - 19 November 2026, SDK 1.5.0–1.6.0. New pages Build a minimal game in 15 minutes, Testing checklist before you submit and Audio, pausing and ads. In local testing, simulated portal events and running a build zip from your computer; rooms open to friends (
isPublic) in multiplayer rooms; versioned engine downloads with checksums; the 1.5.0, 1.5.1 and 1.6.0 notes in versioning. - 19 November 2026, confirming it is you. Creating or revoking an API token, adding a webhook endpoint or rotating its secret, changing payout details, making someone an admin, transferring studio ownership and deleting a studio now ask you to confirm it is you with a passkey or an authenticator app. See the developer API reference, webhooks and the submission walkthrough.
- 19 November 2026, SDK 1.4.0. Reporting chat and the feedback screenshot in the game module, mirroring localStorage in the data module, a pointer from the cloud saves guide and the multiplayer rooms guide, and a 1.3 to 1.4 note in versioning.
- 18 November 2026, read-through for newcomers. Your first game live in 30 minutes is now the single path from zero to a submitted build. New glossary and a reorganised troubleshooting page (blank frame, mixed content, CORS, audio, fullscreen, saves, ads in preview). The docs now say how switching builds really works (Activate and Roll back to this) and that studios may be onboarded by invitation.
- 18 November 2026, earlier updates. Analytics and metrics reference, build validation reference, notifications, player features, webhooks, the purchases rewrite (sandbox only), embedding on partner sites, and age rating and languages as required submission fields.
- 17 November 2026. Submission walkthrough, starter kits, the public Preview tool, requirements checklist, launch stages, updating a live game, engine pages and the SDK playground.