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

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. 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
Bridge.remoteConfig.isSupported

Use the PlaygamaBridge Is Remote Config Supported condition. If unsupported, use your local defaults.

Use the PlaygamaBridge Is Remote Config Supported condition. If unsupported, use your local defaults.

Bridge.remote_config.is_supported
playgama_bridge_remote_config_is_supported()
bridge.remote_config.is_supported()
bridge.remoteConfig.isSupported
Platform support · 1 of 25 platforms

Supports: yandex

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

Set Context

Set dynamic game/player parameters used by the platform for config segmentation (for example, Yandex clientFeatures). Parameters accumulate across calls and are forwarded to the platform SDK on every get().

Call it before get() — for example, right after you know the player's segment.

bridge.remoteConfig.setContext({ segment: 'whales', level: 42 })
Bridge.remoteConfig.SetContext(new Dictionary<string, object>() { { "segment", "whales" }, { "level", 42 } });

There is no separate action — add context parameters with the common Add Action Parameter / Add Bool Action Parameter actions right before Send Remote Config Get Request (see the example in Load Values).

There is no separate action — add context parameters with the common Add Action Parameter / Add Bool Action Parameter actions right before Send Remote Config Get Request (see the example in Load Values).

Bridge.remote_config.set_context({ "segment": "whales", "level": 42 })
playgama_bridge_remote_config_set_context(json_stringify({ segment: "whales", level: 42 }))
bridge.remote_config.set_context({ segment = "whales", level = 42 })
bridge.remoteConfig.setContext({ segment: 'whales', level: 42 })

Load Values

Load remote values and merge them into your local defaults before gameplay starts. get() takes no arguments — pass segmentation parameters via setContext() beforehand.

In the event sheet:

  1. On a trigger (e.g. Button → On clicked), optionally add context with Add Action Parameter / Add Bool Action Parameter, then run Send Remote Config Get Request.

  2. Add the On Remote Config Got Completed condition. Inside it, check Has Remote Config Value for each key and read it with the PlaygamaBridge.RemoteConfigValue("key") expression.

Read loaded values with the PlaygamaBridge.RemoteConfigValue("key") expression after checking the Has Remote Config Value condition.

Copy This Example

In the events sheet:

  1. On a trigger (e.g. Button is clicked), optionally add context with Add Action Parameter / Add Bool Action Parameter, then run Send Remote Config Get Request.

  2. Add the On Remote Config Got Completed condition. Inside it, check Has Remote Config Value for each key and read it with the PlaygamaBridge::RemoteConfigValue("key") expression.

Read loaded values with the PlaygamaBridge::RemoteConfigValue("key") expression after checking the Has "key" in Remote Config condition.

Copy This Example

Remote Config here is the platform feature (Yandex Remote Config). Bridge can also merge a remote copy of playgama-bridge-config.json over the local file on any platform — see the remoteConfigUrl option in Setup.

Last updated