Remote Config
Support
bridge.remoteConfig.isSupportedBridge.remoteConfig.isSupported

Load Values
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
})private void Start()
{
var options = new Dictionary<string, object>();
switch (Bridge.platform.id)
{
case "yandex":
var clientFeatures = new object[]
{
new Dictionary<string, object>
{
{ "name", "levels" },
{ "value", "5" },
}
};
options.Add("clientFeatures", clientFeatures);
break;
}
Bridge.remoteConfig.Get(options, OnRemoteConfigGetCompleted);
}
private void OnRemoteConfigGetCompleted(bool success, Dictionary<string, string> data)
{
if (success)
{
foreach (var keyValuePair in data)
{
Debug.Log($"key: { keyValuePair.Key }, value: { keyValuePair.Value }");
}
}
}

Last updated