Overview
Encore works alongside Adapty so you can present retention offers at key moments in your app. Since Adapty doesn’t include a built-in paywall component, you present Encore offers directly usingEncore.placement().show().
Adapty handles subscription management, analytics, and attribution. Encore handles retention offer presentation and purchase delegation.
Handle Offer Results
Register handlers at app launch so Encore can delegate purchases to Adapty.Register onPurchaseRequest
Register onPassthrough
Called when the user dismisses the offer or no offers are available. Use this to resume the user’s original action.
Alternative: Automatic StoreKit Purchase
If you don’t setonPurchaseRequest, Encore purchases via native StoreKit 2 automatically. You must manually report each transaction to Adapty so it can track entitlements.
Setup
- Configure Adapty SDK in observer mode:
- Register
onPurchaseCompleteto report transactions:
Adapty SDK 3.3+ in observer mode requires manual
reportTransaction() calls for StoreKit 2 transactions.Configure Analytics
Encore Webhook
Encore uses Apple’s App Store Server Notifications to track subscription lifecycle events and measure offer impact. See Configure Analytics for full setup instructions.If Adapty already occupies your primary App Store Server Notifications URL, use the Forward from Your Server option to send notifications to both Adapty and Encore.