For the complete documentation index, see llms.txt. This page is also available as Markdown.

Changelog

Release-by-release list of SDK changes, fixes, and updates

v2.4.0

Oct 29, 2026

Added

Platforms

  • Y8: integration updated to the new Y8 SDK

  • MSN: SDK update, player avatar, ad fix

  • YouTube: ad block detection fix

  • Playgama: support for social methods

v2.3.0

Sep 30, 2026

Added

  • Custom analytics events: analytics.send(name, data) sends your own game events to Playgama analytics. Available in all engine plugins

  • Gameplay time events: gameplay_30s and gameplay_60s are sent automatically after game_ready, time on pause is not counted

  • npm: Vite plugin @playgama/bridge/vite adds the SDK script to index.html — from CDN (mode: 'cdn', default) or as a local copy from the package (mode: 'local')

  • Samsung Instant Plays: gracRating config option (ALL, 12, 15, 18) selects the GRAC rating badge, ALL by default

Changed

  • npm: the package no longer bundles the SDK into the game code. The SDK is loaded as a separate playgama-bridge.js script, and import bridge from '@playgama/bridge' returns it

  • Advanced banners: offsets accept 0 without the percent sign

  • The first interstitial can be shown 30 seconds after start instead of 60

  • New text of the popup shown when an ad fails or is closed too early

  • Engine plugins (Unity, Godot, Defold, GameMaker, Construct 3, GDevelop, Cocos Creator): social content is taken only from the config file. share, inviteFriends and createPost take the id of a social.shares, social.invites or social.posts entry, and joinCommunity takes no options and reads social.joinCommunity. Passing the content in code is no longer supported — move it to the config

v2.2.0

Sep 15, 2026

Added

  • Social posts: social.createPost(id, payload) creates a post from a social.posts config entry; share(id) and inviteFriends(id) work the same way with their config entries

  • Post rewards: social.getPostReward() returns rewards for opening a post and for players who came through your posts

  • platform.data — launch parameters, plus postId if the game was opened from its own post

  • platform.launchSource — whether the game was opened from a notification or from one of its own posts

  • Reddit: posts, sharing as a comment, leaderboards, server time, post rewards

  • Samsung Instant Plays: in-app purchases, loading progress, GRAC rating badge

  • Playgama Sandbox platform

Changed

  • Playgama shows payment prices from the platform

  • Playgama cloud saves now work for guests

v2.1.0

Aug 21, 2026

Notifications Module

  • Added a new module for scheduled platform notifications: isSupported, schedule(), cancel(), cancelAll()

  • Notification IDs are mapped to platform-specific values in playgama-bridge-config.json

  • The payload of the notification a game was launched from is delivered through platform.payload

  • Supported on MSN

npm Package

  • SDK is now published as @playgama/bridge with ESM and UMD builds

  • Added TypeScript typings — import bridge from '@playgama/bridge', constants via @playgama/bridge/constants, window.bridge typings via @playgama/bridge/global

  • All modules on bridge.* are now fully typed

Advertisement Module

  • Added auto-show interstitials — advertisement.interstitial.autoShow lists the events that trigger an interstitial (platform messages, storage_set, visibility_state_visible)

  • Fixed advanced banners

Loading Screen

  • Fixed the loading screen being overlapped by game elements

Analytics

  • Added bridge.gameVersion — reported as game_version in every analytics event

Playgama

  • Added social.share and social.addToHomeScreen

  • Added cloud saves for guest players

  • Player ID provided by the platform is now used for unauthorized players as well

  • Platform messages are now forwarded to the platform SDK

Standalone

  • Added game ID support

  • Added price and currency resolution for the payments catalog

MSN

  • Added notifications support, including the launch payload of the notification the game was opened from

  • Added social.addToHomeScreen

  • Automatic re-engagement notifications can be turned off with disableAutoNotifications

  • Player ID now falls back to publisherPlayerId

GameSnacks

  • Fixed audio state detection

QA Tool

  • Added screenshot capture

  • Added cross-promo, daily rewards and tasks events

  • Added platform-resolved configuration to the initialization payload

  • Improved screen recording

Removed Platforms

  • Removed PlayDeck

v2.0.0

July 10, 2026

TypeScript rewrite of the SDK.

  • Breaking changes in Storage, Achievements, Social, and Remote Config; the Game module is removed

  • Removed platforms: Absolute Games, BitQuest

See Migration (v1 → v2) for the full list of API changes.

v1.31.0

May 29, 2026

Samsung

  • Added platform support for Galaxy Store Instant Games

Standalone

  • Added platform support for publishing games outside of a host platform

Cross Promo Module

  • Added a configurable "More games" overlay

Advertisement Module

  • Added checkAdBlock() on the Playgama platform

  • Changed the default initial interstitial delay to 30 seconds across platforms

  • Improved ad initialization on Xiaomi and Y8

  • Improved mute/unmute handling on CrazyGames and GameSnacks

Platform Module

  • Added browser defaults protection on initialization — disables the right-click context menu and accidental text selection / touch callouts

  • sendMessage() now tolerates an explicit null options argument (Godot and other engine integrations)

MSN

  • Added re-engagement notifications — scheduled automatically on launch

YouTube

  • Added an animated "Subscribe" prompt shown automatically on desktop during loading

Reddit

  • Updated payments integration

Payments

  • Improved catalog handling and null-safety on Playgama, MSN, Microsoft Store, CrazyGames

v1.30.0

Apr 10, 2026

Advertisement Module

  • Added advanced banners. Supported on Playgama, CrazyGames, MSN

  • Added initial interstitial delay

  • Improved adblock detection

Platform Module

  • Added sendCustomMessage()

YouTube

  • Updated integration

  • Added support for advertisement.showRewarded

Other Improvements

  • Improved Xiaomi integration

  • Improved QA Tool integration

  • Minor code style fixes

v1.29.0

Mar 17, 2026

Playgama

  • Added support for payments.consume and payments.getPurchases

Microsoft Store (beta)

  • Added player authorization and player info support

  • Improved purchase and authorization verification

TikTok (beta)

  • Added platform support

GameSnacks (beta)

  • Added platform support

Dlightek (beta)

  • Added platform support

Yandex

  • Added support for pause and resume events

Unity

  • Added PlayerPrefs Editor

JS Core

  • Added build mode for single-platform bundles

Social Module

  • Added isAddToHomeScreenRewardSupported and getAddToHomeScreenReward

  • Added isAddToFavoritesRewardSupported and getAddToFavoritesReward

Platform Module

  • Added new events to sendMessage with optional world and level parameters:

    • level_started

    • level_completed

    • level_failed

    • level_paused

    • level_resumed

Other Improvements

  • Improved Facebook integration

  • Improved MSN integration

  • Improved QA Tool integration

  • Improved built-in No Ads popup

v1.28.0

Feb 6, 2026

Unity Plugin & Optimization Tool

  • Added preload for critical Unity resources

  • Added automatic viewport meta handling for mobile devices

  • Added DNS prefetch and preconnect for CDN resources

  • Provides detailed analysis of Unity builds

  • Displays all used assets (images, audio, 3D models, fonts, shaders, etc.)

  • Helps optimize assets used in the build

  • Automatically applies optimal compression settings for the build and code

Microsoft Store (beta)

  • Added platform integration

  • Added ads(Playgama Ads) support

  • Added in-app purchases support

  • Added ratings and reviews support

Analytics

  • Various internal improvements

SaaS

  • Added cloud leaderboards support (beta)

QA Tool

  • Added engine and version to initialization payload

  • Added CLEAN_CACHE action and cleanCache method

  • Added audio state and pause handling

  • Added internal storage policy management

  • Added bridge configuration to initialization message

Xiaomi

  • Added guest user support

  • Platform internal storage is now available only for authorized players

CrazyGames

  • Fixed getPurchases and getCatalog methods

  • Fixed mobile Xsolla window handling (reject flow)

  • Fixed consume method

Claude Code

  • Updated Claude Code plugins

v1.27.0

Dec 4, 2025

Xiaomi platform beta

  • New platform integration

  • Supports banner, interstitial, and rewarded ads (Google AdSense)

MSN platform

  • Added cloud saves support

  • Fixed payments.purchase flow

  • SDK updated from rc.20 to rc.21

Discord platform

  • Updated authentication

  • Fixed isInviteFriendsSupported and isShareSupported

YouTube, Yandex, Facebook platform

  • Small fixes

QA Tool platform

  • Added authorization state management in the player state section

  • Internal storage is now available only to authorized players

  • Added a guest state for unauthorized players

  • Fixed platform.language

  • Added the ability to launch the QA tool via URL, including launching from localhost

  • Added the ability to manage the state of advertisements

Playgama platform

  • Fixed tryParseJson logic for the storage.get method

  • Added support for game_ready message

JS Core engine

  • Added built-in overlay Device Orientation Popup displayed on mobile and tablet devices when screen orientation doesn't match the supported orientations

    • Configurable via options.device.useBuiltInOrientationPopup & options.device.supportedOrientations

    • Uses Screen Orientation API with matchMedia and dimension comparison fallbacks

  • Centralized array validation for storage.get, set, and delete methods

  • Added postToParent() and postToSystem() utility functions

  • Unified platform-specific error constants into a single ERROR.GAME_PARAMS_NOT_FOUND constant

  • Improved loading from CDN

Construct, Godot 3 & 4, Defold, Cocos Creator, GDevelop, Game Maker, Scratch engine

  • Added options to payments.purchase method

  • Improved loading from CDN

Unity engine

  • Restructured project as Unity Package Manager compatible package

  • Added Playgama/Bridge Setup menu for Editor Setup Window

  • Added Editor Debug Window – interactive UI for testing advertisement, payments, player authorization in editor without building

  • Early Callbacks Fix – messages are now queued until Unity instance is ready, preventing lost events

  • Extracted inline JavaScript from index.html to separate playgama-bridge-unity.js file

  • Removed obsolete example files and unused assets

  • Improved loading from CDN

v1.26.0

Oct 14, 2025

v1.25.0

Sep 4, 2025

For example: player.extra.jwt on Playgama, player.extra.payingStatus and player.extra.signature on Yandex

For example purchase.jwt on Playgama

v1.24.0

Jul 31, 2025

v1.23.0

Jun 27, 2025

v1.22.0

May 28, 2025

v1.21.0

Apr 17, 2025

v1.20.0

Feb 11, 2025

v1.19.0

Dec 4, 2024

v1.18.0

Nov 15, 2024

v1.17.0

Oct 30, 2024

v1.16.0

Oct 17, 2024

v1.15.0

Oct 2, 2024

Last updated