You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Breaking Changes
Changes the logLevel to be non-optional and introduces a none case to turn off logging.
Removes all guides from the SDK documentation. From now on, our online docs provide guides and the SDK documentation is only there as a technical reference.
Changes TrackResultObjc to PresentationResultObjc
Removes convenience methods for creating PaywallPresentationHandlers because they were a bit confusing
Changes the return type of PurchaseController.restorePurchases() from bool to RestorationResult
Enhancements
If you're using SwiftUI, you can now call Superwall.configure in the init() of your App file. This means you don't need to have a UIApplicationDelegate.
Prevents validation of restorations and purchases if you're using a PurchaseController - it's now all on you!
Updates Objective-C sample app to use Superwall.register and removes legacy StoreKit code.
Simplifies SwiftUI and RevenueCat example app.
You can now access device.subscriptionStatus in a rule, which is a string that's either ACTIVE, INACTIVE, or UNKNOWN.
You no longer need to have swiftlint installed to run our example apps.
If you're not using a PurchaseController and a user comes across the "You're already subscribed to this product" popup, we will now correctly identify this as a restoration and not a purchase. This can happen when testing in sandbox if you purchase a product -> delete and reinstall the app -> open a paywall and purchase.
Adds static variable Superwall.isInitialized which is true when initialization is complete and Superwall.shared can be accessed.
Adds transaction_abandon and transaction_fail as potential triggers. This comes with a new DismissState case closedForNextPaywall, which is returned when dismissing one paywall for another.
Fixes
Fixes issue where an invalid URL provided for an "Open URL" click behavior would result in a crash.
Exposes PaywallPresentationHandler as SWKPaywallPresentationHandler for Objective-C.
Fixes issue #127, where calling identify with the same userId would prevent paywalls from showing.