Docs

2. Feature Flag Set-Up

A Feature Flag is a statement in your code that specifies how the app should behave when the flag is “on” or “off”. This logic can be used multiple times in your code.

iOS Example:

if ([Apptimize isFeatureFlagOn:@"new_feature_flag_variable"]) {
   // ON
} else {
   // OFF
} 

Android Example:

if (Apptimize.isFeatureFlagOn("new_feature_flag_variable")) {
   // ON
} else {
   // OFF
}

The variable name used (new_feature_flag_variable in the example above) should match the variable name within “Create Code” of your feature flag. This links the Feature Flag in the Apptimize dashboard to your app’s code.

FF Code Example

Request A Demo

Learn how to get started with apptimize and accelerate your mobile growth