Changes
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
How to use the new features
No response
Checklist
Example file
bridge-gdevelop-examples.zip
Extension file
PlaygamaBridge.zip
Changes
Added
analytics.send(name, data)sends your own game events to Playgama analytics. Available in all engine pluginsgameplay_30sandgameplay_60sare sent automatically aftergame_ready, time on pause is not counted@playgama/bridge/viteadds the SDK script toindex.html— from CDN (mode: 'cdn', default) or as a local copy from the package (mode: 'local')gracRatingconfig option (ALL,12,15,18) selects the GRAC rating badge,ALLby defaultChanged
playgama-bridge.jsscript, andimport bridge from '@playgama/bridge'returns it0without the percent signshare,inviteFriendsandcreatePosttake the id of asocial.shares,social.invitesorsocial.postsentry, andjoinCommunitytakes no options and readssocial.joinCommunity. Passing the content in code is no longer supported — move it to the configHow to use the new features
No response
Checklist
Example file
bridge-gdevelop-examples.zip
Extension file
PlaygamaBridge.zip