无法从 Firebase 下载默认远程配置

Cannot download default remote config from Firebase

我无法从 Firebase 远程配置下载默认远程配置。

我在我的 android 应用程序中使用它进行翻译,但我希望在用户没有互联网时(在没有网络的情况下启动应用程序时)将默认翻译器插入到应用程序中。

但我不知道如何将此远程配置下载为 xml 或 JSON。

我使用此工具的 java 版本

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

来自 Firebase documentation:

When using Firebase console, you define one or more parameters (key-value pairs) and provide in-app default values for those parameters. You can override in-app default values by defining service-side parameter values using the Firebase console.

因此,当您定义一个参数时,您还定义了该参数的默认值,然后 hard-coded 到您的应用程序中。这是远程配置 API 将在应用程序首次启动时 return 执行的操作,如果它无法从服务器获取更新的值。