Remote configuration

To get a remote configuration of flags (Remote Config), use the Fetch remote config action together with Player info is successfully fetched and Failure to fetch remote config. We recommend requesting flags once at the start of the game.

To get values from the remote configuration, use the Flag expression.

Local configuration

Tip

Always add a local configuration of flags to the game code in case the remote configuration cannot be fetched from the server (for example, due to internet connection issues).

To do this, use the Set key default value action.

Client parameters

To describe client parameters, use the Set client feature action. They will be transmitted when requesting the remote configuration.

Example of using remote configuration

Construct 3 screenshot: remote configuration setup screen using the YandexGamesSDK plugin. A table of three columns (each cell in the third column has "+ Add action" and "+ Add..." buttons) and three rows. Row 1 — "System" settings icon, "Boot layout completed", "Yan... | Remote configuration. Set the key "someProp" to the default value "someValue"  Yan... | Remote configuration: Set client features "featureKey" to value "featureValue"  Yan... | Request remote configuration." Row 2 — "YandexGames...", "Remote configuration loaded", "Sys..." settings icon. | Set someProp to the value YandexGamesSDK.Flag("someKey")". Row 3 — "YandexGames...", "Remote configuration load error", empty row.


Repository