June 2018
Beginner to intermediate
394 pages
9h 2m
English
To define a set of key-value parameters along with a few default parameter values, you need to use a Map object or an XML asset file that is stored in your application's res/XML directory. Make sure you sync the following values to the Remote Config object using setDefaults():
firebaseRemoteConfig.setDefaults(R.xml.remote_config_params);
The XML resources should look like the following snippet:
<?xml version="1.0" encoding="utf-8"?><defaultsMap> <entry> <key>welcome_text</key> <value>Welcome to Packt Remote Config</value> </entry> <entry> <key>main_background_color</key> <value>#42f486</value> </entry></defaultsMap>
Default in-app parameters can be declared inside XML assets bundled with the application or contained inside ...
Read now
Unlock full access