Firebase

How to use Firebase Remote Config to manage feature rollouts?

Learn how to easily manage feature rollouts with Firebase Remote Config through our simple step-by-step guide. Boost your app's performance effortlessly with strategic deployment.

Developer profile skeleton
a developer thinking

Overview

Firebase Remote Config is a cloud service designed to help with smooth feature rollouts. This handy tool lets you tweak your app's behavior without needing to push an update. Plus, it customizes what each user sees. While quite powerful, getting the hang of using it, especially for managing feature rollouts, can be a bit tricky. So, the guide ahead breaks down the steps for setting up Firebase Remote Config, creating app configuration parameters, and targeting specific user groups. Not to mention, it shows how to roll out features gradually. Whether you're a newbie or a seasoned pro, this guide aims to boost how you use Firebase's features.

Get a Free No-Code Consultation
Meet with Will, CEO at Bootstrapped to get a Free No-Code Consultation
Book a Call
Will Hawkins
CEO at Bootstrapped

How to use Firebase Remote Config to manage feature rollouts?

Setup Firebase Project

Alright, let's get started with Firebase Remote Config for feature rollouts. First things first, head over to the Firebase console. You can either create a new project or pick one you already have.

Add Firebase SDK To Your App

Next up, you need to register your app with Firebase. Just click on the 'Add Firebase' button in the console. For Android, you'll need your app's package name. For iOS, it's the bundle ID.

Download the google-service.json for Android or GoogleService-Info.plist for iOS and drop that file into your app.

Now, let's add the Firebase SDK to your app. This means tweaking your build scripts and making some code changes.

Start Using Firebase Remote Config

First, grab the singleton Remote Config object. Then, set up the default config settings you've defined. These will be used until the Remote Config object fetches new settings from Firebase servers.

For Android:

FirebaseRemoteConfig mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
mFirebaseRemoteConfig.setDefaultsAsync(R.xml.remote_config_defaults);

For iOS:

let remoteConfig = RemoteConfig.remoteConfig()
remoteConfig.setDefaults(fromPlist: "RemoteConfigDefaults")

Define Parameters In Firebase Console

Head back to the Firebase Console, select your project, and open the Remote Config feature. Define the key-value pairs you want to use in your app.

Fetch Remote Config Values

Now, let's fetch those values from the Remote Config console to your app by calling the fetch method.

For Android:

mFirebaseRemoteConfig.fetchAndActivate()

For iOS:

remoteConfig.fetchAndActivate { (status, error) in
  guard error == nil else {
    print("Uh-oh. Got an error fetching remote values \(error)")
    return
  }
  if status == .activatedFetched || status == .fetchedDefault {
    print("Got values from the server")
  }
}

Activate Fetched Values

Firebase's fetch method stores the fetched values in a temporary area until they're activated.

For Android:

mFirebaseRemoteConfig.activateFetched();

For iOS:

remoteConfig.activate(completion: { (changed, error) in
    if let error = error {
        print("Uh-oh. Got an error activating fetched values \(error)")
        return
    }
    if changed {
        print("Values were activated")
    }
})

Using Parameter Values

Once the fetched config parameters are activated, your app can start using them.

For Android:

mFirebaseRemoteConfig.getBoolean("your_key");

For iOS:

remoteConfig.configValue(forKey: "your_key").boolValue

By following these steps, you can use Firebase Remote Config to manage feature rollouts, testing new features and updates before rolling them out to everyone.

Explore more Firebase tutorials

Complete Guide to Firebase: Tutorials, Tips, and Best Practices

Explore our Firebase tutorials directory - an essential resource for learning how to create, deploy and manage robust server-side applications with ease and efficiency.

Why are companies choosing Bootstrapped?

40-60%

Faster with no-code

Nocode tools allow us to develop and deploy your new application 40-60% faster than regular app development methods.

90 days

From idea to MVP

Save time, money, and energy with an optimized hiring process. Access a pool of experts who are sourced, vetted, and matched to meet your precise requirements.

1 283 apps

built by our developers

With the Bootstrapped platform, managing projects and developers has never been easier.

hero graphic

Our capabilities

Bootstrapped offers a comprehensive suite of capabilities tailored for startups. Our expertise spans web and mobile app development, utilizing the latest technologies to ensure high performance and scalability. The team excels in creating intuitive user interfaces and seamless user experiences. We employ agile methodologies for flexible and efficient project management, ensuring timely delivery and adaptability to changing requirements. Additionally, Bootstrapped provides continuous support and maintenance, helping startups grow and evolve their digital products. Our services are designed to be affordable and high-quality, making them an ideal partner for new ventures.

Engineered for you

1

Fast Development: Bootstrapped specializes in helping startup founders build web and mobile apps quickly, ensuring a fast go-to-market strategy.

2

Tailored Solutions: The company offers customized app development, adapting to specific business needs and goals, which ensures your app stands out in the competitive market.

3

Expert Team: With a team of experienced developers and designers, Bootstrapped ensures high-quality, reliable, and scalable app solutions.

4

Affordable Pricing: Ideal for startups, Bootstrapped offers cost-effective development services without compromising on quality.

5

Supportive Partnership: Beyond development, Bootstrapped provides ongoing support and consultation, fostering long-term success for your startup.

6

Agile Methodology: Utilizing agile development practices, Bootstrapped ensures flexibility, iterative progress, and swift adaptation to changes, enhancing project success.

Yes, if you can dream it, we can build it.