Feature flags are key/value pairs returned in the /config response under flags.
Value Types
| Type | Description |
|---|---|
boolean | true / false |
string | Arbitrary text value |
number | Integer or float |
json | Parsed JSON object/array |
Rollout Percentage
Set rollout_pct to a value from 1–100. Each device is assigned a random number (1–100) on first config fetch. If the device's number ≤ rollout_pct, the flag is included in their response as in_rollout: true.
This means a flag at 10% rollout reaches approximately 10% of devices, gradually.
Config Cache Invalidation
Whenever a flag is toggled or updated, OMobile_REST_Config::invalidate_cache() is called, which deletes all omobile_config_* transients. The next request regenerates the cache.
