title: How is the Firebase Remote Config rate limit counted?
body: <p>I am using Firebase Remote Config to store a secret key for a mobile app ( I do not want to include in client app due to security problems).</p>
  
  <p>The problem is I know that fetching config from server many times in a short period of time can throw a throttling exception. In a production app there is a limit of 5 requests per hour but I do not know if this limit is count per user or globally.</p>
  
  <p>This is the code I have:</p>
  
  <pre><code>//first search cached result, if present
      String key = FirebaseRemoteConfig.getInstance().getString("key");
      if(key != null &amp;&amp; !key.isEmpty()){
          setKeyAndGoHome(key);
      }else {
          //no key present, let's fetch it from config
          FirebaseRemoteConfig.getInstance().fetch().addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;Void&gt; task) {
                  if(task.isSuccessful()){
                      FirebaseRemoteConfig.getInstance().activateFetched();
                      //key is cached 12 hours
                      String key = FirebaseRemoteConfig.getInstance().getString("key");
                      setKeyAndGoHome(key); 
                  } else {
                      //this can happen due to a throttling exception
                  }
  
              }
          });
      }
  </code></pre>
  
  <p>This is very important because without this key my app can not work. I need to know if throttling exception condition can be reached.</p>
  
  <p>Do you know how is the limit counted?</p>
  
  <p>Thanks.</p>