Overview
Encore tracks earned entitlements automatically, including free trials, discounts, and credits. You can check entitlement status anywhere in your app to display promotional badges, show reward status, or highlight temporary access periods.Third-Party Paywall Integrations
For Superwall and RevenueCat integrations, see the dedicated guides:Using Superwall
Track Encore entitlements alongside Superwall subscription status
Using RevenueCat
Track Encore entitlements alongside RevenueCat subscription status
Checking Entitlement Status
Async Boolean Check
Check if a user has an active promotional reward using the asyncisActive() method, which automatically performs a smart refresh to ensure fresh data:
See the SDK Reference for complete API details: isActive.
Encore manages its own entitlements. To incorporate Encore with your existing logic, simply OR Encore’s active status with your current subscription state.
Using Combine Publishers for Reactive Updates
For reactive apps that need to respond automatically to entitlement changes, subscribe usingisActivePublisher():
See the SDK Reference for complete API details: isActivePublisher.
Using with Your Entitlement Manager
The most common pattern is to integrate Encore entitlements with your existing subscription/entitlement manager. This keeps your access logic centralized and combines IAP subscriptions with Encore promotional rewards.Recommended Setup
Create a centralized manager that tracks both IAP subscriptions and Encore entitlements:See the SDK Reference for complete API details: isActivePublisher.
Usage in SwiftUI
Once your entitlement manager is set up, use it throughout your app:Next Steps
- Presenting Offers - Show retention offers to users
- User Management - Identify users, set attributes, and manage sessions
- SuperWall Integration - Integrate with SuperWall for dynamic paywalls
- RevenueCat Integration - Integrate with RevenueCat for subscription management