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