private void GetRemoteConfig() { try { firebaseRemoteConfig.Fetch(0); firebaseRemoteConfig.ActivateFetched(); data = firebaseRemoteConfig.GetString(DEFAULT_THEME); } catch (Exception e) { Console.WriteLine("ERROR REMOTE CONFIG: " + e.Message); } }
public string GetRemoteDataString(string key) { try { InitRemoteConfig(); firebaseRemoteConfig.Fetch(0); firebaseRemoteConfig.ActivateFetched(); return(firebaseRemoteConfig.GetString(key)); } catch (Exception) { return(Resource.Xml.remote_config_defaults.ToString()); } }
public static void Fetch(this FirebaseRemoteConfig remoteConfig, Action <Exception> action) { remoteConfig.Fetch().AddOnCompleteListener(new RatingViewCompletionHandler(remoteConfig, action)); }