Remote Configuration Quick Start
Introduction
LionSDK automatically:
Initializes and authenticates the player to Satori, Firebase or Balancy
Sets essential properties
Logs important data (experiment name, etc.) to Analytics
Fetches and stores Feature Flag values
LionSDK provides simple functions to:
Access Feature Flags / Remote Configuration Values
Fire Satori Events (to assign payers to audiences)
Set Custom Properties
Install LionSDK
Complete the steps in Getting Started
Setup
Open the
LionStudios/Settings Manager
window and then click toRemote Configs
tab.
<figure><img src="../../../.gitbook/assets/image_2025-07-02_171543123.png" alt=""><figcaption></figcaption></figure>
Select one of these three Remote Config solution on the
Adapter
field and complete setup by following selected product's page:
Usage
The following methods must be called after the LiveOps package has been initialized. The module is part of LionSDK’s initialization cycle; you can use LionCore.IsInitialized
and LionCore.OnInitialized
to ensure that it is ready.
Example (Skip This If You Are a Lion Loading Scene User)
void Start()
{
if (LionCore.IsInitialized)
InitRemoteConfigValues();
else
LionCore.OnInitialized += InitRemoteConfigValues;
}
void InitRemoteConfigValues()
{
// You can use RemoteConfigsController functions here
}
Get the value of a feature flag
Function signature
RemoteConfigsController.GetValue<T>(
string flagName,
T defaultValue)
This will return the value of the feature flag for the current player. The flag name is case-sensitive.
Examples
// If no flag / remote config key exists for that key or if offline, it will return the
// default value (3).
int showAppReviewAfterLevel =
RemoteConfigsController.GetValue<int>("show_app_review_after_level", 3);
// Any type can be used. The flag / remote config value will be parsed to that type.
// For complex types, the flag value has to be formatted in json.
bool bonusLevelEnabled =
RemoteConfigsController.GetValue<bool>("bonus_level_enabled", false);
RemoteConfig.cs
Migration
RemoteConfig.cs
MigrationIf you were previously using the RemoteConfig.cs
script shared by Lion Studios, the functions are the same, but the class has been renamed from RemoteConfig
to RemoteConfigsController
Replace occurrences of RemoteConfig.
with RemoteConfigsController
Example
Before
RemoteConfig.GetValue<int>("flag_name", 0);
After
RemoteConfigsController.GetValue<int>("flag_name", 0);
Last updated