Any One can tell me why it's not working
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Firebase.RemoteConfig;
using System.Threading.Tasks;
using UnityEngine.UI;
public class zTest : MonoBehaviour {
public Text serverText;
Dictionary<string, object> defaults = new Dictionary<string, object>();
ConfigValue configValue;
string serverAddress {
set {
serverText.text = value;
}
}
void Start () {
defaults.Add("ServerAddress","0.0.0.1");
FirebaseRemoteConfig.SetDefaults(defaults);
FirebaseRemoteConfig.Settings = new ConfigSettings() { IsDeveloperMode = true};
configValue = FirebaseRemoteConfig.GetValue("ServerAddress");
serverAddress = configValue.StringValue;
}
public void ActivateFetch() {
FirebaseRemoteConfig.ActivateFetched();
configValue = FirebaseRemoteConfig.GetValue("ServerAddress");
serverAddress = configValue.StringValue;
}
}