Breaking Changes
- Changes
SubscriptionController
toPurchaseController
. You now set this inSuperwall.shared.configure
, rather than via the delegate. - Removes
isUserSubscribed()
from theSuperwallDelegate
and replaces this with a published instance variablesubscriptionStatus
. This is enum that defaults to.unknown
on first install and the cached value on subsequent app opens. If you're using aSubscriptionController
to handle subscription-related logic, you must setsubscriptionStatus
every time the user's subscription status changes. If you're letting Superwall handle subscription-related logic, this value will be updated with the device receipt. hasActiveSubscriptionDidChange(to:)
is replaced in favour ofsubscriptionStatusDidChange(to:)
.- Makes
Superwall.shared.options
internal so that options must be set inconfigure
.
Enhancements
- Adds a new event
SubscriptionStatusDidChange
which is logged on the dashboard. - Adds an optional
presenter
parameter totrack
. In v2 this was known ason
. This takes aUIViewController
which is used to present the paywall.