Skip to main content
Supported on: iOS SDK 1.0.61+
The remote config module delivers key-value pairs from the AppDNA Console to your app. Values are set in the Console and synced to the SDK automatically. All reads are synchronous from an in-memory cache — they never block the UI thread or require a network call.

Get Config Values

Read values using the get method. Returns Any? — you cast to the expected type on your side.
To retrieve all config values at once:

Module Access

Module Methods

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
  • Background fetch — the SDK checks for updates periodically
You can also force a refresh manually with AppDNA.remoteConfig.refresh(). If the fetch fails (no connectivity, timeout), the SDK continues using the cached values. On first launch with no connectivity, bundled config defaults are used.
The config TTL is configurable via AppDNAOptions(configTTL: 7200) (in seconds). The default is 3600 seconds (1 hour).

Listen for Config Changes

Register a closure to be notified when remote config values change after a refresh:

Full Example

Remote config values are managed in the Console under Settings > Remote Config. Changes take effect on the next SDK config refresh (within the TTL window).