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 to PurchaseResult and PurchaseResultObjc. Return this from your PurchaseController when you detect a user has tried to purchase a product that they've already purchased. This happens when transaction.transactionDate < purchaseDate, where purchaseDate is the date that the purchase was initiated. Check out RCPurchaseController.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 a transaction_restore event. This indicates whether the restoration happened due to the user purchasing or restoring.
Checklist
[x] All unit tests pass.
[x] All UI tests pass.
[x] Demo project builds and runs.
[x] I added/updated tests or detailed why my change isn't tested.
[x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
[x] I have run swiftlint in the main directory and fixed any issues.
[ ] I have updated the SDK documentation as well as the online docs.
Changes in this pull request
isPaywallPresented
convenience variable.device_attributes
event, which tracks the device attributes every new session..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.restore_via_purchase_attempt
to atransaction_restore
event. This indicates whether the restoration happened due to the user purchasing or restoring.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.swiftlint
in the main directory and fixed any issues.