Firebase remote config throttling

670 views
Skip to first unread message

Evan Fang

unread,
Oct 24, 2020, 11:50:39 AM10/24/20
to Firebase Google Group
Hi, 
I'm building a Flutter app with Firebase remote config. I've read the official documentation but still have some questions:


1. According to the documentation: Before SDK version 17.0.0, the limit was 5 fetch requests in a 60 minute window (newer versions have more permissive limits).
I'd like to know what's the limits on the latest version? I'm using the latest Flutter  firebase_remote_config 0.4.0+2.
I ask this question because I've tried to fetch requests above 5 times but I didn't receive FirebaseRemoteConfigFetchThrottledException.

I turned off the `debugMode` and also set the expiration to 0 second.
```dart
Future<void> getFirebaseRemoteConfig() async { 
    final RemoteConfig remoteConfig = await RemoteConfig.instance;
    try { 
        await remoteConfig.setConfigSettings(RemoteConfigSettings(debugMode: false)); 
        await remoteConfig.fetch(expiration: const Duration(seconds: 0)); 
        await remoteConfig.activateFetched(); 
    } on FetchThrottledException catch (exception) { 
        // Fetch throttled.
        print(exception); 
    } catch (exception) { 
        print('Unable to fetch remote config. Cached or default values will be used'); 
    } 
}
```

2. I want to make sure the limits are counting on every device, right? Which means we can request at most 5 times in an hour per app.

3. Is there any throttling on the server-side? For example, the total requests might be limited.

Thanks for helping.

Regards,
Evan
Reply all
Reply to author
Forward
0 new messages