Firebase Remote Config is great, but it’s a bit tricky to configure it correctly.

Here’s my battle-tested loading strategy:

  1. setup fetch interval (flavor-dependent)
  2. set default values
  3. activate previous values
  4. fetch new values (unawaited)
  5. add a realtime listener (which is not subject to the minimumFetchInterval)
How to Initialize Firebase Remote Config

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 👇