androidfirebase-remote-config

Conditions in Firebase Remote Config Defaults


I'm trying to set up Firebase Remote Config. One of important parts in my project is correct localization. So I have conditions for different languages set up in console. But now I'd like to make defaults xml. Example on github is to simple. There are only few values without any conditions. Documentation does not describe this format at all. So I'm wondering if it is possible to specify all my localizations in defaults.xml and how do I do this.


Solution

  • The defaults file can't be used to specify conditions. It is just key/value pairs as shown. These values will be used before anything is actually fetched and cached from Firebase, for example, the first time your app is launched.