What is remote config?
Remote config lets you change values in a released app, such as limits, prices and feature switches, from a dashboard instead of shipping an update.
Remote config is a way to change how a released app behaves without publishing a new version. The app asks a service for a set of named values (a free-tier limit, a price to display, whether a feature is on) and uses them in place of constants in the code. Change a value in a dashboard and every installed copy of the app picks it up.
It matters most on mobile, where an update has to pass store review and then wait for users to install it. A value that lives in remote config can be changed in minutes and changed back just as fast.
What teams use remote config for
- Tuning numbers: how many items the free plan allows, how hard a level is, how long a trial lasts, how often an ad appears.
- Switching features on and off: releasing a feature to a small share of users first, or turning off something that is misbehaving. This overlaps with feature flags.
- A/B tests: giving two groups different values and measuring which does better.
- Different values for different users: by country, platform, app version, or by what the user has done in the app.
How it works
- You replace a constant in the code with a lookup by name, and keep the old constant as the fallback.
- The SDK downloads the current values (usually at launch, then in the background) and caches them on the device.
- When the code asks for a value, the SDK answers from its cache, so the app still works with no connection.
With AppFig in a Unity game the lookup looks like this:
string maxLives = AppFig.GetFeatureValue("max_lives");
int lives = maxLives != null ? int.Parse(maxLives) : 3; // 3 is the fallback
Server-side and on-device evaluation
When a value depends on who the user is, something has to decide which value this user gets. There are two places that can happen.
On the server. The service knows the user's attributes and audiences and sends back the values that apply to them. Targeting is limited to what the server already knows about the user, and a change in the user's behavior is only reflected once that data has reached the server.
On the device. The SDK downloads the rules themselves and decides locally. The device already knows what the user just did, so a rule such as "failed level 8 twice" can take effect immediately, with no network call and without the user's event history leaving the device. The trade-off is that the rules are downloaded to the app, so they should not contain secrets.
AppFig evaluates on the device: rules can use event counts, sequences and recency, user properties and device properties, and are checked locally each time the app asks for a value. See How it works.
What remote config is not
It does not change your app's code. It can only change values the code already reads, so a behavior has to be built and shipped once before it can be controlled remotely. It is also not a place for secrets such as API keys: anything delivered to a device can be read on that device.
FAQ
Is remote config the same as a feature flag?
They overlap. A feature flag is usually an on/off switch for a piece of code; remote config also covers numbers, text and JSON. Most tools, AppFig included, handle both with the same mechanism.
Do changes need a new app release?
No, as long as the app already reads the value. Adding a new value that the code does not read yet needs one release; after that it can be changed at any time.
What happens when the device is offline?
The SDK uses the values it cached last time, or the fallback written in your code if it has never fetched any. With AppFig, rules keep being evaluated on the device while offline.
How fast do changes reach users?
It depends on how often the SDK checks for changes. AppFig's SDKs check every minute by default while the app is in the foreground.