Skip to main content

Overview

You still pick the product in App Store Connect and the Encore Dashboard exactly as in Add Subscription Product. What changes with Superwall is how the purchase completes and how Superwall learns about it.

Let Superwall observe the purchase

Turn on observer mode at configure time. Encore purchases through StoreKit 2, and Superwall picks the transaction up on its own:
No onPurchaseComplete() handler is needed. Superwall detects the StoreKit transaction itself.
Observer mode requires iOS 17.2 or later and disables Superwall.shared.purchase(). All purchases go through StoreKit directly.

Or complete the purchase yourself

Register onPurchaseRequest() and Encore hands your handler the product id instead of purchasing itself. Superwall exposes no purchase API in observer mode, so the handler is the StoreKit 2 one from the quickstart step, unchanged.

Next