Question by
StarShade88 · Jan 17, 2021 at 03:46 PM ·
eventremotecallbackconfig
Unity Remote Config FetchCompleted never gets called.
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");
}
}
Comment
Best Answer
Answer by StarShade88 · Jan 17, 2021 at 04:12 PM
Just updated to 2.0.1 and it's working!
Your answer

Follow this Question
Related Questions
UI event with non-instantiated Prefab as event handler. What happens? 2 Answers
[Solved] Scroll not working when elements inside have click events 3 Answers
What is the best way to implement a more responsive custom drag event with Scroll Rect? 0 Answers
Custom InputHandler is giving different results between Editor and final Build 0 Answers
Multiple collider/areas on Board ?, 0 Answers