Make changes using Firebase Remote Config

Updated 31 May 2019

Save

Firebase Remote Config is a unique service designed to give you fine-grained control over instances of your apps while they are installed on user devices. By using it, you can reliably modify the looks and behaviors of your apps across your entire user base without publishing updates on Google Play.

Requirements

1. Add the following dependency to your app module’s

2. Add your project on firebase console. Please find the attachment for reference:-

 

3. Then you add you parameter key and their default value over there and you can also put some condition(app version, country region, and device language, etc). Please review the attachment:-

After putting this, you have published the changes in order to reflect on the app.

 

4. Now we have to make remote_config_default.xml(res/xml/remote_config_default.xml)

5.  Now we have to initialize the instance of FirebaseRemoteConfig object and you can also get the updated value with the help of firebase callback:-

With this implementation, we can make changes in our app without updating the app on play store.

Limitations:- Caching and throttling. Remote Config caches values locally after the first successful request. By default, the cache expires after 12 hours, but you can change the cache expiration for a specific request by passing the desired cache expiration, in seconds, to fetchWithExpirationDuration: completionHandler. For more details on throttling, you can go through the following links:-

https://firebase.google.com/docs/remote-config/android#throttling

https://firebase.google.com/docs/remote-config/use-config-android

Thanks A lot

 

 

 

 

 

 

 

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home