Time Limited Offer

50% off Flutter in Production

Spring Sale ends May 8th

View Offer

How to Initialize Firebase Remote Config

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 👇

Want More?

Invest in yourself with my high-quality Flutter courses.

Flutter Foundations Course

Flutter Foundations Course

Learn about State Management, App Architecture, Navigation, Testing, and much more by building a Flutter eCommerce app on iOS, Android, and web.

Flutter & Firebase Masterclass

Flutter & Firebase Masterclass

Learn about Firebase Auth, Cloud Firestore, Cloud Functions, Stripe payments, and much more by building a full-stack eCommerce app with Flutter & Firebase.

The Complete Dart Developer Guide

The Complete Dart Developer Guide

Learn Dart Programming in depth. Includes: basic to advanced topics, exercises, and projects. Last updated to Dart 2.15.

Flutter Animations Masterclass

Flutter Animations Masterclass

Master Flutter animations and build a completely custom habit tracking application.