Firebase Remote Config: Test App Changes Without a Release

Firebase Remote Config: Test App Changes Without a Release: CRO & testing article cover from AnalyticsLiv

In short

Firebase Remote Config lets you change an app's features and content from the Firebase console without a store release. The app ships with default values, then fetches and activates new ones for users who match your conditions, such as app version or country. This guide walks through creating a parameter, a condition and the Android code.

Contents5 sections

Talk to a specialist

What is Firebase Remote Config?

Mobile apps change constantly, and pushing every update through the Play Store or App Store is slow. What if users could get changes without downloading a new version?

Firebase Remote Config lets developers change how an app looks and behaves without an app update. It works like a remote control: you switch features on or off, or change values, from the Firebase console.

How does Remote Config work?

The process has three parts:

  • Fetching the values
  • Activating the values
  • Evaluating the conditions

The app ships with default values for each parameter. In the Firebase console, developers set new values and the conditions for who gets them. For example, a change can go to all users or only to targeted users, such as users on a minimum app version or in a certain location.

The app then fetches the new values from Firebase, activates them and applies the changes for the targeted users.

In the same way, personalised notifications can be sent to users based on their actions, for example when they abandon a cart before purchase. This guide focuses on making dynamic changes with Remote Config.

How do you set up Firebase Remote Config?

You need a Firebase project connected to your mobile app. To add Firebase Analytics to your app first, see our Firebase Analytics setup guide for Android.

In your app code (here in Android Studio), add the Firebase dependencies to the build.gradle file (Module: app). Then open the Firebase console to set up Remote Config, following the steps below.

Step 1: Open Remote Config

Select Remote Config under the Run section of the Firebase console and click ‘Create configuration’.

Step 2: Create a parameter

  • A panel opens where you define the parameter.
  • Enter the parameter name and select its data type.
  • Set the ‘Default value’. In our example, ‘false’ hides the new feature and ‘true’ turns it on.

Step 3: Choose advanced settings

Click ‘Add new’ to add more settings:

  • Conditional value: gives the new value only to users who meet a condition, such as app version, country or region, language, platform or a Google Analytics audience.
  • Rollout: releases the change to a percentage of users. For example, 30% of users get the update and the other 70% keep the current version.
  • Personalization: uses machine learning to choose the value for each user automatically, towards a goal such as engagement or revenue.

Step 4: Create a condition

In this example we use a conditional value.

  • A dialog opens where you name the condition and pick a colour that marks this audience in the console.
  • Here we chose users in India as the audience for the new update.
  • Add the filters you need and click ‘Create condition’.
  • Check that the parameter details are correct and click ‘Save’.

Step 5: Save and publish the changes

  • After saving, the dashboard shows all the Remote Config parameters for your app.

Note: changes don’t reach users until you click ‘Publish changes’ at the top right of the dashboard and confirm in the pop-up.

  • Once published, you see the first version of your configuration.

Step 6: Add Remote Config to your app code

In our example we update an Android app. The app won’t respond to Remote Config until the code reads the values.

  • Initialise Remote Config in the app and set the in-app default values.
  • Fetch and activate the values from Firebase, and check whether the fetch succeeded.
  • Read the parameter by the name you set in Step 2 and change the app’s behaviour based on its value.

Note: the code that reads Remote Config has to reach users in one app release. After that, you can change values from the console without a new release.

What does the result look like?

Users who don’t match the condition get the default value and see the existing layout with no changes.

Users in India match our condition. For them, the banner header changes and they see the ‘application_credit’ update.

The Remote Config dashboard then shows how each version performs, with graphs, user counts and other data.

When is Remote Config most useful?

Remote Config suits apps where promotions, features or content change often. You can try new features on a small group, roll them out gradually and react to user feedback quickly, all without waiting for a store release.

Frequently asked questions.

Ask us your own question

Only once. The code that reads Remote Config must ship in an app release. After that, you change values from the Firebase console without a new release.

Changes only go live after you click Publish changes in the console. The app also has to fetch and activate the new values.

Yes. Conditional values target users by conditions such as app version, country or language, and a rollout sends a change to a percentage of users.

Tracking an app or a product?

Talk to the team that sets up Firebase, Mixpanel, AppsFlyer and Adjust on one event plan.