Supported on: iOS SDK
1.0.61+ · Android SDK 1.0.33+ · Flutter SDK 1.0.3+Get a Config Value
get returns Future<dynamic> — the value type matches whatever you configured in the Console (string, number, boolean, or JSON map). Cast to the type you expect and supply a fallback for the null case.
Reading Other Types
Get All Values
getAll returns a Map<String, dynamic> containing every key the SDK currently has cached.
Force a Refresh
refresh pulls the latest config from the server. The SDK already refreshes automatically (see below) — call this explicitly only when you need fresh values right now (e.g. after a user changes their preferences in another tab).
Module Access
Module Methods
Typed Helpers
If you prefer typed accessors at the call site, add a Dartextension on the module. This keeps the SDK surface small while giving your codebase a typed feel.
When Config Refreshes
The SDK refreshes remote config automatically:- On app launch — if the cached config has expired (default TTL: 1 hour)
- On return from background — same TTL check
The config TTL is configurable via
AppDNAOptions(configTTL: 7200) (in seconds). The default is 3600 seconds (1 hour).Listen for Config Changes
onChanged fires once per refresh whenever the SDK receives updated config from the server. Re-read the keys you care about inside the callback.
Full Example
Remote config values are managed in the Console under Settings > Remote Config. Changes take effect on the next SDK config refresh.

