Skip to main content
Supported on: iOS SDK 1.0.70+ · Android SDK 1.0.42+ · React Native SDK 1.0.7+ (New Architecture only)
The feature flags module lets you enable or disable features remotely from the AppDNA Console. Flags are evaluated locally from cached config — no network call, no latency on the hot path.

Check a Flag

isEnabled() returns false by default if the flag does not exist or config has not loaded.

Multi-Variant Flags

For flags that carry a string, number, or JSON payload (rather than a simple on/off), read the value with getVariant:
getVariant returns unknown — cast to the type you configured in the Console.

Module Access

Module Methods

Using Flags with Experiments

Gate a feature behind a flag, then run an experiment to test its impact:

React to Flag Changes

Register an onChanged callback to re-render UI when the SDK receives an updated config from the server:
The callback fires once per refresh, not per flag. Re-read the flags you care about inside the callback.

Full Example

Feature flags are managed in the Console under Settings > Feature Flags. Toggle a flag and it takes effect on the next SDK config refresh (default 1 hour).