Firebase Remote Config feature for web app (after Firebase expansion)
Asked Answered
J

4

28

I am building a web application with Firebase and I saw they released their expansion with all great new features. However, the Remote Config section is now only available for Android and IOS apps. Is there a way to apply the remote config also on web app as well?

Justicz answered 12/7, 2016 at 5:57 Comment(0)
G
32

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.

Goal answered 12/7, 2016 at 13:47 Comment(15)
well, that stops me from using FRC since it's not a true cross platform solution. Thank you for the reply.Florafloral
Why don't you just use the realtime database for configurations? Just add a configuration node and add your parameters... Your web app can instantly apply changes when using an event listener.Hobie
@MarcelDieterle on the app side that would indeed be similar. But you'd miss the UI for configuring the values, including targeting based on audience.Goal
Any news on this new feature?Doe
if you like to have similar feature like firebase remote config in your webapp, try GTM (Google Tag Manager).Aureomycin
This is important to our organization so that we can use remote config in all of our environments.Shammer
I'd like that too. Seems to be great for A/B testingNarrow
@FrankvanPuffelen any update or notice? It would be really useful, we'll stick to realtime database until it's available. Thanks!Friseur
The Remote Config REST API is now available. You can see the docs here @OhadPerryAppliance
@RosárioPereiraFernandes The REST API is (currently) only for editing the Remote Config templates. It is not for use in regular web clients (similar to the iOS and Android SDKs), which is what OP seems to be asking for.Goal
I understand Frank, and thanks for the clarification. I was just telling Ohad the news, since he mentioned he would love to see this API :)Appliance
@Frank: Is that still the case? Use the Remote Config REST API starts with "This document describes how you can use the Remote Config REST API to read and modify the set of JSON-formatted parameters and conditions known as the Remote Config template."Threatt
You can read the template, but that doesn't yet resolve the variables as the serve does when accessed a client. In other words: the REST API is for modifying the variable, replacing the console. It is not for replacing the Android/iOS SDK, or building your own SDK on platforms where one isn't available.Goal
Is there any update about this topic? or any Beta for web? When I use Flutter and will use it also for Web soon, does Firebase add features that are iOS and Android only to Web to support it?Salas
@FrankvanPuffelen how about A/B testing with remote config, I think it's still not enabled for web?Bohon
R
4

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

Rhabdomancy answered 11/2, 2017 at 20:34 Comment(1)
Hi jwdsoft. Remote configs are not merely preferences only. This feature also takes care of conditional values for various properties on the basis of location, percentile etc.Clericals
P
4

Firebase released a Remote Config REST API on 3/7/2018.

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

Pappano answered 9/3, 2018 at 16:12 Comment(2)
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.Udometer
Please note that this REST API is primarily designed for developers to edit or configure their Remote Config values from a custom tool or service. This should not be used by a consumer-facing web client.Mam
K
1

One alternative is google optimize if you are only doing web stuff. If you need to target all 3 platforms with one tool though not sure if it would be useful for that.

https://www.google.com/analytics/optimize/

Kuhl answered 15/3, 2018 at 12:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.