Definition
Entitlements may expire over time. Use
isActive() or isActivePublisher() to check current status rather than storing the entitlement object.Entitlement Types
| Case | Associated Values | Description |
|---|---|---|
.freeTrial | value: Double?, unit: EntitlementUnit? | Time-limited free access to premium features. Common units: .days, .months |
.discount | value: Double?, unit: EntitlementUnit? | Percentage or dollar-based discount. Common units: .percent, .dollars |
.credit | value: Double?, unit: EntitlementUnit? | Account credits applied to user’s balance. Common unit: .dollars |
Entitlement Units
| Unit | Description | Typical Use |
|---|---|---|
.months | Duration in months | Free trials (e.g., “3 months free”) |
.days | Duration in days | Free trials (e.g., “30 days free”) |
.percent | Percentage value | Discounts (e.g., “20% off”) |
.dollars | Dollar amount | Discounts or credits (e.g., “$10 off”) |
Entitlements are automatically tracked and synced across devices when you call
identify().