I wrote a simple script for unity remote config. The Awake method gets called but the OnDataFetched never gets called. My code:
private void Awake() {
print("get");
//Looking for update
ConfigManager.FetchCompleted += OnDataFetched;
ConfigManager.FetchConfigs<UserAttributes, AppAttributes>(new UserAttributes(), new AppAttributes());
}
private void OnDisable() {
ConfigManager.FetchCompleted -= OnDataFetched;
}
void OnDataFetched(ConfigResponse response) {
print("got");
string newestAppVersion = ConfigManager.appConfig.GetString("NewestVersion");
if (newestAppVersion != Application.version) {
versionNumberText.text = "Version: " + newestAppVersion;
releaseNotesText.text = ConfigManager.appConfig.GetString("ReleaseNotes");
updatePopup.SetActive(true);
updateUrl = ConfigManager.appConfig.GetString("UpdateUrl");
}
}