Achievements

Use achievements to mark in-game milestones, such as defeating the first boss or collecting 100 coins. Optional. Check isSupported, then call unlock(...) when the criteria are met.

circle-info

Unlike Leaderboards and Payments, achievement IDs are configured in each platform's developer dashboard, not in playgama-bridge-config.json. Keep a constants file that maps your in-game milestones to platform achievement IDs.

Support

Check this before enabling achievement logic or showing achievement UI.

bridge.achievements.isSupported

Check this before calling getList(...). Some platforms can unlock achievements but cannot return the full list.

bridge.achievements.isGetListSupported

Check this before showing a native achievement overlay.

bridge.achievements.isNativePopupSupported
chevron-rightPlatform support · 2 of 28 platformshashtag

Supports: lagged, y8

Does not support: absolute_games, bitquest, crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, vk, xiaomi, yandex, youtube

Unlock achievement

Unlock an achievement after the player meets its in-game condition. Send each achievement only once.

let options = { }

switch (bridge.platform.id) {
    case 'y8':
        options = {
            achievement: 'ACHIEVEMENT_NAME',
            achievementkey: 'ACHIEVEMENT_KEY'
        }
        break
    case 'lagged':
        options = {
            achievement: 'ACHIEVEMENT_ID'
        }
        break
}

bridge.achievements.unlock(options)
    .then((result) => {
        // success
    })
    .catch(error => {
        // error
    })
chevron-rightPlatform support · 2 of 28 platformshashtag

Supports: lagged, y8

Does not support: absolute_games, bitquest, crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, vk, xiaomi, yandex, youtube

Get List

Returns the achievement list when the platform supports it. The returned fields are platform-specific.

chevron-rightPlatform support · 1 of 28 platformshashtag

Supports: y8

Does not support: absolute_games, bitquest, crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, vk, xiaomi, yandex, youtube

Show Native Popup

Some platforms can show a built-in achievement overlay. Use it instead of building custom UI when available.

chevron-rightPlatform support · 1 of 28 platformshashtag

Supports: y8

Does not support: absolute_games, bitquest, crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, vk, xiaomi, yandex, youtube

Last updated