Web 应用程序的 Firebase 远程配置功能(Firebase 扩展后)
Firebase Remote Config feature for web app (after Firebase expansion)
我正在使用 Firebase 构建 Web 应用程序,我看到他们发布了具有所有强大新功能的扩展。但是,“远程配置”部分现在仅适用于 Android 和 IOS 应用。有没有办法在网络应用程序上也应用远程配置?
firebaser 在这里
自 2019 年 9 月起,可以从您的 Web 应用程序使用远程配置。查看 Get started with Firebase Remote Config on Web 以开始使用。
如果您对 Web 上的远程配置感兴趣,我建议您使用以下提示:
我在我的网络应用程序上执行了此操作,并且运行良好。
在 firebase 数据库中创建一个配置节点,例如:
sampleFirebaseDB-c2555
{
config :
{
'lang':'EN',
'color':'blue', ...
}
}
使用常规 firebase 数据库从 javascript 读取
firebase.database.ref('/config/').once('value').then(function(snap){
});
并将其存储在对象中或本地。
你可以在你的应用程序中通过点符号访问对象属性
要更改配置,您可以制作一个管理页面来更改这些数据库对象或直接在 firebase 中更改它们
希望对您有所帮助 :D
Firebase 于 2018 年 3 月 7 日发布了远程配置 REST API。
https://firebase.google.com/docs/remote-config/use-config-rest
如果您只做网络内容,另一种选择是 google 优化。如果您需要使用一种工具针对所有 3 个平台,但不确定它是否有用。
我正在使用 Firebase 构建 Web 应用程序,我看到他们发布了具有所有强大新功能的扩展。但是,“远程配置”部分现在仅适用于 Android 和 IOS 应用。有没有办法在网络应用程序上也应用远程配置?
firebaser 在这里
自 2019 年 9 月起,可以从您的 Web 应用程序使用远程配置。查看 Get started with Firebase Remote Config on Web 以开始使用。
如果您对 Web 上的远程配置感兴趣,我建议您使用以下提示: 我在我的网络应用程序上执行了此操作,并且运行良好。
在 firebase 数据库中创建一个配置节点,例如:
sampleFirebaseDB-c2555
{
config :
{
'lang':'EN',
'color':'blue', ...
}
}
使用常规 firebase 数据库从 javascript 读取
firebase.database.ref('/config/').once('value').then(function(snap){
});
并将其存储在对象中或本地。 你可以在你的应用程序中通过点符号访问对象属性
要更改配置,您可以制作一个管理页面来更改这些数据库对象或直接在 firebase 中更改它们
希望对您有所帮助 :D
Firebase 于 2018 年 3 月 7 日发布了远程配置 REST API。
https://firebase.google.com/docs/remote-config/use-config-rest
如果您只做网络内容,另一种选择是 google 优化。如果您需要使用一种工具针对所有 3 个平台,但不确定它是否有用。