I use Firebase Remote Config to store the secret key for the mobile application (I do not want to include it in the client application due to security problems).
The problem is that I know that retrieving a configuration from the server many times in a short amount of time can cause throttling to be thrown. In the production application, there is a limit of 5 requests per hour, but I do not know if this limit is considered per user or globally.
This is the code I have:
String key = FirebaseRemoteConfig.getInstance().getString("key");
if(key != null && !key.isEmpty()){
setKeyAndGoHome(key);
}else {
FirebaseRemoteConfig.getInstance().fetch().addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if(task.isSuccessful()){
FirebaseRemoteConfig.getInstance().activateFetched();
String key = FirebaseRemoteConfig.getInstance().getString("key");
setKeyAndGoHome(key);
} else {
}
}
});
}
This is very important, because without this key my application cannot work. I need to know if a throttling exclusion condition can be achieved.
Do you know how the limit is calculated?
Thank.