This section provides some additional information about how the quickstart
example sets in-app default parameter values and fetches values from the Remote
In-app default parameter values
In-app default values are set using a plist file with the
setDefaultsFromPlistFileName method in this example, but you can also set
in-app default values inline using the other
setDefaults methods of the
Then, you can override only those values that you need to change from the
Firebase console. This lets you use Remote Config for any default value that you
might want to override in the future, without the need to set all of those
values in the Firebase console.
Fetch values from the Remote Config service
When an app calls
parameter values are fetched from the Remote Config service if either
- the last successful fetch occurred more than 12 hours ago, or
- a value less than 43200 (the number of seconds in 12 hours) is specified for
Otherwise, cached parameter values are used.
Fetched values are cached locally, but not immediately activated. To activate
fetched values so that they take effect, call the
activateFetched method. In
the quickstart sample app, you call this method from the UI by tapping
Fetch Remote Config.
You can also create a Remote Config Setting to enable developer mode, but you
must remove this setting before distributing your app. Fetching Remote Config
data from the service is normally limited to a few requests per hour. By
enabling developer mode, you can make many more requests per hour, so you can
test your app with different Remote Config parameter values during development.