Firebase Remote Config feature for web app (after Firebase expansion)

If you are interested in remote config on the web I suggest the following tips: I did this on my web app and it is working perfectly.

in the firebase database create a config node for example:

sampleFirebaseDB-c2555
{
    config : 
    {
    'lang':'EN',
     'color':'blue',    ...
    }
}

read that from javascript using regular firebase database read

firebase.database.ref('/config/').once('value').then(function(snap){

});

and store that in an object or locally. and you can access the object proprietes by dot notation in your application

and to change the config you can make an admin page to change those database objects or to change them in firebase directly

I hope that helps :D


firebaser here

Since September 2019 it is possible to use Remote Config from your web applications. Have a look at Get started with Firebase Remote Config on Web to get started.