Firebase Remote Config: 3 lessons learned

3 important lessons learned after using Firebase Remote Config on Android

Maxi Rosson
Mar 24 · 4 min read

Lesson #1: Define in-app default parameter values

Firebase.remoteConfig.apply {
setDefaultsAsync(mapOf(
"key" to "default_value"
))
}

Lesson #2: Retry the fetching with WorkManager

com.google.firebase.remoteconfig.FirebaseRemoteConfigClientException: The client had an error while calling the backend!

Lesson #3: Propagate Remote Config updates in real-time

1. Subscribe client app instances to an FCM topic

2. Create a function to send an FCM ping on template updates

3. Set the Remote Config state on the client

4. Fetch the Remote Config updates on app startup

Message delivery reports

Follow us for more productivity tools & ideas for Android, Kotlin & Gradle projects.

Dipien

Boost your Productivity

Maxi Rosson

Written by

Developer Productivity Engineer | Android | Productivity tools & ideas for Android, Kotlin & Gradle developers on medium.dipien.com

Dipien

Dipien

Productivity tools & ideas for Android, Kotlin & Gradle developers.

Maxi Rosson

Written by

Developer Productivity Engineer | Android | Productivity tools & ideas for Android, Kotlin & Gradle developers on medium.dipien.com

Dipien

Dipien

Productivity tools & ideas for Android, Kotlin & Gradle developers.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store