问题
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
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.
回答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).
来源:https://stackoverflow.com/questions/38321012/firebase-remote-config-feature-for-web-app-after-firebase-expansion