Firebase Remote Config is great, but it's a bit tricky to configure it correctly.
Here's my battle-tested loading strategy:
- setup fetch interval (flavor-dependent)
- set default values
- activate previous values
- fetch new values (unawaited)
- add a realtime listener (which is not subject to the
minimumFetchInterval
)
Want to use this in your apps? Grab it from this gist:
For more info about common loading strategies, read:
Flutter in Production
My latest course shows how to use Firebase Remote Config in useful scenarios such as force updates and A/B tests.
Learn more here 👇