Enhancements
- Exposes
isPaywallPresented
convenience variable. - Adds
device_attributes
event, which tracks the device attributes every new session. - Stops preloading paywalls that we know won't ever match.
- Adds a
.restored
case toPurchaseResult
andPurchaseResultObjc
. Return this from yourPurchaseController
when you detect a user has tried to purchase a product that they've already purchased. This happens whentransaction.transactionDate < purchaseDate
, wherepurchaseDate
is the date that the purchase was initiated. Check outRCPurchaseController.swift
in our Superwall-UIKit+RevenueCat example app for how to implement this. If you let Superwall handle purchasing, then we will automatically detect this. - Adds
restore_via_purchase_attempt
to atransaction_restore
event. This indicates whether the restoration happened due to the user purchasing or restoring.