android - 访问第二个项目的 "Remote config"

标签 android firebase firebase-realtime-database firebase-remote-config

我们可以访问多个 Firebase 数据库,

// Retrieve my other app.
FirebaseApp app = FirebaseApp.getInstance("secondary");
// Get the database for the other app.
FirebaseDatabase secondaryDatabase = FirebaseDatabase.getInstance(app);

同理,有什么方法可以访问我的第二个项目Remote config ??

引用: Accessing the Databases from two different Firebase projects

提前致谢!

最佳答案

不,远程配置没有这样的机制。 Remote Config 与 Firebase Analytics 紧密相关,后者也仅限于每个应用程序一个实例。 Remote Config 使用 Analytics 了解有关用户的一些信息,以确定他们应该为特定参数获得什么值。因此,您必须接受 Remote Config 也将使用默认项目对“用户”的计算。

关于android - 访问第二个项目的 "Remote config",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42225201/

相关文章:

java - 如何使用字符串的内容命名调用方法

android - 多个 dex 文件定义 XmlPullParserException

java - 如何在android中从Firebase获取List的值?

java - firebase 数据库的权限被拒绝

android - 使用 Retrofit 将动态 JSON 解析为 POJO

ios - Firebase removeAllObservers() 在切换 View 时不断调用 -Swift2 iOS

android - 从 firebase 获取数据快照时出错 -> java.lang.NumberFormatException : Invalid int: ""

java - 访问 Firebase 中的 key

javascript - 如何检查数据是否存在?

android - 将文件上传到 Amazon S3 存储桶时出错