github superwall/Superwall-iOS 3.0.0-rc.6

latest releases: 4.8.1, 4.8.0, 4.7.0...
2 years ago

Breaking Changes

  • Adds a PaywallViewControllerDelegate to the getPaywallViewController functions. This is mandatory and is how you control what happens after a paywall is dismissed.
  • The completion block of getPaywallViewController(forEvent:params:paywallOverrides:delegate:completion:) now accepts an optional PaywallViewController, an optional PaywallSkippedReason and an optional Error. This makes it easier to understand when the paywall was skipped vs when a real error occurred.
  • Renamed the PaywallResult case closed to declined.

Enhancements

  • Exposes PaywallOverrides and PaywallViewController to Objective-C.
  • Adds Objective-C convenience methods to PaywallOverrides.
  • Adds a device.isFirstAppOpen property that you can use in paywall rules. This is true for the very first time a user opens the app. When the user closes and reopens the app, this will be false.
  • Removes the need to tell us when you're going to present/have presented a PaywallViewController that has been retrieved using getPaywallViewController(...).
  • Adds isInspectable to the paywall web view if running on iOS 16.4+.
  • Exposes PaywallViewControllerDelegate to be used with getPaywallViewController(...)

Fixes

  • Fixes various memory related crashes.
  • Fixes a crash when calling reset() when a paywall is displayed.

Don't miss a new Superwall-iOS release

NewReleases is sending notifications on new releases.