Kids mode and games made for children
This page is for developers who make a game for young children, or whose game may be played by a child in kids mode. It explains what the portal does in that case, what the SDK reports to your game, what your game must do itself, and how to test it. The full content rules a reviewer applies are under age rating and in the requirements checklist.
Two things with one name#
| Name | What it is | Who sets it |
|---|---|---|
| Made for children (the kids flag) | A setting of your game. Tick it in the Audience and distribution card. The game is listed in the kids area and always runs with the restrictions below. | You, confirmed by a reviewer |
| Kids mode | A switch on the visitor's device (a host-only cookie named __Host-zoko-kids), or the kids site itself: every page served from the kids host kids.zokogames.com is in kids mode whatever the cookie says, and the kids area pages (/kids, /parents, /embed) are in kids mode for that request. A parent turns the cookie on in one tap; turning it off needs a multiplication question (the parent gate). While it is on, the visitor can only open the kids area, kids games, the parent pages and legal pages. |
A parent, or the portal by host |
Inside the game frame the two behave the same way. The portal treats a player as a child when either is true: the game has the kids flag, or the visitor's kids mode is on. Games without the flag are not shown in kids mode; if a child opens one by address, the page sends them back to the kids area.
What the SDK tells your game#
The portal tells your game through SDK.game.settings.kidsMode, on every game: true in kids mode and for a game with the kids flag, false otherwise. In the same cases it sets disableChat to true. The field is typed from SDK 1.5.0; an older SDK build copies the settings object it receives, so the value is readable there too. Where it is undefined (an older SDK in local mode, for example), fall back to disableChat. Read it at start and in the settings listener, and hide chat, multiplayer, sign-in and shop screens when it is true. For everything else, write code that works when each feature is simply missing.
const isKids = (s) => s.kidsMode ?? s.disableChat;
const applyKids = (s) => { multiplayerButton.hidden = isKids(s); };
applyKids(SDK.game.settings);
SDK.game.addSettingsChangeListener(applyKids);| SDK call | In kids mode or for a kids game |
|---|---|
SDK.game.settings.kidsMode |
true in kids mode and for a game with the kids flag, false otherwise. Sent by the portal on every game; typed from SDK 1.5.0 and passed through untyped by older builds. |
SDK.game.settings.disableChat |
true from the start for a game with the kids flag, and for any player in kids mode on any game. Respect it: hide your own text input and incoming text. |
SDK.ad.requestAd |
A game with the kids flag: rejects with adsDisabled, because ads never run for a kids game and no ad network script is loaded. A game without the flag that runs under kids mode: the call is not refused because of kids mode. The game's normal ad settings and limits apply, but only contextual or house ads play, with no ad network script, no blocker check and no ad-free offer; if the game has no ads enabled it still rejects with adsDisabled. The embed on partner sites is not such a case: it runs no SDK (see embedding), so requestAd rejects with sdkDisabled there. |
SDK.banner.requestBanner, SDK.banner.requestResponsiveBanner |
A game with the kids flag: rejects with bannersDisabled. A game without the flag under kids mode: accepted as usual when the game has banners on, and shown as a house banner only, never from an ad network; otherwise bannersDisabled. |
SDK.ad.hasAdblock |
Resolves false. No blocker check runs. |
SDK.user.showAuthPrompt |
Rejects with userCancelled. No sign-in prompt appears. |
SDK.user.showAccountLinkPrompt |
Rejects with userNotAuthenticated. |
SDK.user.getUserToken |
Rejects with userNotAuthenticated. The portal refuses to issue an identity token in kids mode and for a kids game (the token request is answered 401, which the SDK reports as no user), so your server never receives a verifiable identity for a child. |
SDK.user.submitScore, leaderboard reads |
submitScore resolves and records nothing, with or without delayed. Boards come back empty. The server API answers a score submission for a kids game with 403 and the reason kids-game. |
SDK.achievements.list |
Resolves an empty list. |
SDK.achievements.unlock |
Resolves { ok: false, reason: "guest" }. |
SDK.game.room, updateRoom, invites |
Rooms are never opened: the portal refuses the realtime connection in kids mode, so send and setState fail. The realtime server also refuses to open, join or message a room of a game with the kids flag (its room_closed error, which your game does not receive). The share and invite buttons are hidden. See multiplayer rooms. |
SDK.data |
Works. Progress stays on the device, like a guest's, kept apart from any account's save and never merged into one. |
The portal also does these things without your game being involved:
- Optional cookie categories are off and analytics-only events are not sent. Plays and anonymous counts still work. Play history is not kept, on the device or on a parent's account. Analytics events are not recorded: the portal's event endpoint treats kids mode and kids games as anonymous, whatever the page claims, and never stores a visitor id.
- Players report a problem only with preset reasons. There is no free text, so the
feedback.receivedwebhook is not sent for a kids game and "contact the developer" is closed. - The game cannot be embedded on partner sites, and sharing is hidden.
- Saving the game for offline play is offered for kids games only while kids mode is on.
- Ads are never personalised: a kids game shows no ads, and any other game in kids mode gets contextual or house ads only, with no ad network script loaded.
- The game frame does not grant camera or microphone access. It also has no pop-ups and no downloads, even if Needs popups is ticked for the game.
- A kids game creates no recently played entries and no play streak for a signed-in player: the portal records nothing when it is played. Its game page shows no "Play on your phone" QR card.
- The store is not available:
SDK.store.isAvailableisfalseand every purchase call is refused. The console refuses the kids flag on a game marked as having in-game purchases (kids_no_iap). - A kids game needs an all ages or 7+ rating. The console refuses any other rating with the error
kids_rating.
Calls in kids mode#
In kids mode the portal answers these calls itself, as it would for a signed-out player, so no account, store or room service is reached. Handle each answer as shown.
| SDK call | Answer in kids mode |
|---|---|
SDK.init() |
Resolves. The portal reports no user, SDK.user.isUserAccountAvailable is false and SDK.store.isAvailable is false. |
SDK.user.getUser |
Resolves null. |
SDK.user.getUserToken, SDK.user.listFriends, SDK.user.showAccountLinkPrompt, SDK.store.getPurchaseToken |
Reject with userNotAuthenticated. |
SDK.store.getPlayerInventory, SDK.store.buyItem, SDK.store.consumeItem |
Reject with userNotAuthenticated. |
SDK.store.getCatalogItems |
Rejects with catalogFetchFailed. |
SDK.user.showAuthPrompt |
Rejects with userCancelled. |
SDK.user.submitScore |
Resolves and records nothing, with or without delayed. |
SDK.ad.requestAd, SDK.banner.requestBanner |
Not answered by the portal itself: the rules in the table above apply (a kids-flagged game gets adsDisabled and bannersDisabled; any other game gets contextual ads only). |
SDK.game.room.send, SDK.game.room.setState |
Reject with roomUnavailable. |
SDK.game.room |
Reads as an empty room: not in a room, no members, no host. |
SDK.game.updateRoom, SDK.game.leftRoom, SDK.analytics.trackOrder |
Resolve with nothing; nothing is announced or counted. |
SDK.game.inviteLink |
Rejects with unexpectedError. |
SDK.data |
Works on the device only; nothing is uploaded to the portal, and the save never merges into an account. |
Do not branch on these error codes. Read the two flags once after init() and hide sign-in, friends and shop screens when SDK.user.isUserAccountAvailable or SDK.store.isAvailable is false. Keep the catch blocks as a safety net.
await SDK.init();
// Branch on the flags once, not on error codes.
signInButton.hidden = !SDK.user.isUserAccountAvailable;
shopButton.hidden = !SDK.store.isAvailable;
// A refused call still settles; treat it like a guest.
try {
await SDK.user.getUserToken();
} catch (e) {
if (e.code !== "userNotAuthenticated") console.warn(e.code);
}What the console refuses#
When you tick Made for children (or change a kids game later), the console refuses the save with a 409 and the error kids_blocked if the game has any of these. The response lists them in blockers, and a game that is already a kids game is refused only for what the edit adds.
popups: Needs popups is on.external_hosting: the game is hosted on your own server instead of as an uploaded build.store_links: any store link is filled in.chat: Moderated chat is on.
Three more refusals have their own codes: kids_rating (a rating other than all ages or 7+), kids_no_iap (the game is marked as having in-game purchases) and kids_no_leaderboard (a leaderboard is switched on for a kids game). Turn the setting off, or untick Made for children, and save again.
What your game must do#
The portal does not enforce everything. Some rules are checked only by the reviewer, and a game that breaks them is sent back with the reason Audience flag. In particular:
- No links out. No URL the player can open, no store, social or community links. Links between kids games of the same series are the only exception.
- No purchases. The portal refuses store calls in kids mode, but show no real-money items and no "unlock" or "premium" prompts either.
- No ad offers. Do not show a "watch an ad" button;
requestAdfails withadsDisabledfor a kids game. - No text from players. No chat, comments, names, free-text fields or user names on screen.
- No personal data. Do not ask for a name, email, age or location, and call no host other than your own build. The build report lists external hosts as
origin_*findings. - No pressure. No return timers, streaks that punish absence or last-chance prompts.
- Easy to start. Short plain instructions, with pictures where you can, and an easy first level.
- Content. Cartoon-level violence at most, nothing frightening, no gambling-like loops or chance-based rewards.
Your game must also work in each failure above. submitScore and unlock resolve without doing anything, showAuthPrompt rejects, and requestAd fails. If a feature depends on one of them, hide it.
const SDK = window.ZokoGames.SDK;
await SDK.init();
// Chat input follows the portal setting, and follows it live.
const applyChat = (s) => { chatBox.hidden = s.disableChat; };
applyChat(SDK.game.settings);
SDK.game.addSettingsChangeListener(applyChat);
// An ad that cannot run is just a break that did not happen.
try {
await SDK.ad.requestAd("midgame");
} catch (e) {
if (e.code !== "adsDisabled") console.warn(e.code);
}
// Always continue the game here.Test it#
- Build preview. After a build passes validation, open Preview for the game in the console. In the Simulate the player card, tick Kids mode. The game restarts with
disableChatset, no ad blocker check, and sign-in, leaderboards and multiplayer not offered. Every answer shows in the event log under Portal replies. - Preview tool. The Preview tool shows your SDK calls as the portal receives them. Check that none of your own features is left as a dead button after a rejected call. The Kids mode (SDK 1.5.0) switch sends a settings change with
kidsModeanddisableChatset totrue, as the portal does. - Local mode. From SDK 1.5.0 add
?kidsMode=true:kidsModeanddisableChatbecometrue, and nothing else changes. With an older SDK add?disableChat=true. Add?ad_response=adsDisabledto force the ad failure, and?user_response=logged_outfor a guest. See local testing. - Your own build. Search it for outside links, text inputs, purchase calls and requests to other hosts. Play the first level reading as little as possible.
The simulated kids mode works only in the console's build preview. Public pages never honour it.
Before you submit#
- The kids flag is ticked and the rating is all ages or 7+.
- The game works with
adsDisabled,userCancelled, no leaderboard and no rooms, and shows nothing that depends on them. -
disableChatis applied at start and on change. - Kids mode is read from
kidsMode, withdisableChatas the fallback. - No link, text input, purchase, personal data or call to another host.
- Instructions are short and the first level is easy.
Next steps#
- Age rating and the requirements checklist for the exact rules.
- Player features for the portal side.
- Launch checklist for the full path to a published game.
- Troubleshooting when a call fails.