-
Notifications
You must be signed in to change notification settings - Fork 1
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.
Check this before requesting remote values. If unsupported, use your local defaults.
playgama_bridge_remote_config_is_supported()Platform support · 1 of 28 platforms
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 remote values and merge them into your local defaults before gameplay starts.
var options
switch playgama_bridge_platform_id() {
case "yandex":
options = {
"clientFeatures": [ // optional parameter
{ name: "levels", value: "5" }
]
}
break
}
playgama_bridge_remote_config_get(json_stringify(options))
// callback via Async Social Event
if async_load[? "type"] == "playgama_bridge_remote_config_get_callback" {
if async_load[? "success"] {
var values = json_parse(async_load[? "data"])
}
}