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?
问题:
回答1:
firebaser here
There is currently no way to access Firebase Remote Config from a web app. We're considering adding it in a future version, but as usual: no commitments, no timelines.
Update
Using the (new) Remote Config REST API 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.
回答2:
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
回答3:
Firebase released a Remote Config REST API on 3/7/2018.
https://firebase.google.com/docs/remote-config/use-config-rest
回答4:
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/
回答5:
I use myself launchdarkly.com to do just that. It's not free ($79/mo for the first plan) but supports lot of things (user segmentation, progressive rollout, etc).