Prerequisites
- Grantiva SDK installed (Installation)
- At least one flag created in the dashboard
1. Create a flag in the dashboard
Go to Settings > Feature Flags and create a flag:- Key:
dark_mode - Type: Boolean
- Value:
true(production),false(staging)
2. Read flags in your app
3. All flag types
4. Environments
Flags can have different values per environment:5. Cache control
Flags are cached for 5 minutes by default:SwiftUI example
Tier limits
| Tier | Max flags |
|---|---|
| Free | 5 |
| Pro | 25 |
| Business | 100 |
| Enterprise | Unlimited |