コード例 #1
0
 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 string GetActiveInappName()
 {
     return(_firebaseRemoteConfig.GetString("active_inapp_product_name"));
 }
 public string GetString(string key) => _firebaseRemote.GetString(key);