Remote Config

Read game settings (difficulty, drop rates, feature flags, A/B values) from the platform at runtime. This lets you change behavior without shipping a new build. Optional; available on a subset of platforms.

Fetch once at startup before gameplay, and always provide hardcoded defaults for every key. The request can fail, or the platform can return only part of your config.

Support

Check this before requesting remote values. If unsupported, use your local defaults.

bridge.remoteConfig.isSupported
chevron-rightPlatform support · 1 of 28 platformshashtag

Supports: yandex

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, y8, youtube

Load Values

Load remote values and merge them into your local defaults before gameplay starts.

let options = { }

switch (bridge.platform.id) {
    case 'yandex':
        options = {
            clientFeatures: [ // optional parameter
                { name: 'levels', value: '5' }
            ]
        }
        break
}

bridge.remoteConfig.get(options)
    .then(data => {
        // your custom data, example: { showFullscreenAdOnStart: 'no', difficulty: 'hard' }
        console.log(data)
    })
    .catch(error => {
        // error
    })

Last updated