private void GetRemoteConfig()
 {
     try
     {
         firebaseRemoteConfig.Fetch(0);
         firebaseRemoteConfig.ActivateFetched();
         data = firebaseRemoteConfig.GetString(DEFAULT_THEME);
     }
     catch (Exception e)
     {
         Console.WriteLine("ERROR REMOTE CONFIG: " + e.Message);
     }
 }
Пример #2
0
 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());
     }
 }
Пример #3
0
 public static void Fetch(this FirebaseRemoteConfig remoteConfig, Action <Exception> action)
 {
     remoteConfig.Fetch().AddOnCompleteListener(new RatingViewCompletionHandler(remoteConfig, action));
 }