How to Setup Web Restoration Alert Options
Turn off the Superwall web restoration alert with PaywallOptions.shouldShowWebRestorationAlert, useful when users already have a StoreKit subscription.
Setup Web Restoration Alert
To configure the web restoration alert behavior in your Superwall integration:
-
Access your application's PaywallOptions configuration
-
Set the
shouldShowWebRestorationAlertproperty to control when the alert appears:PaywallOptions.shouldShowWebRestorationAlert = false
Setting this property to false will suppress the web restoration alert, which is particularly useful when users already have an active StoreKit subscription.
Usage
The web restoration alert is designed to check for web-based subscriptions during the restore purchase flow. By default, this alert may appear even when users have an existing StoreKit subscription. To optimize the user experience:
-
Disable the web restoration alert if your app primarily uses StoreKit subscriptions
-
Enable the alert only in scenarios where checking for web-based subscriptions is necessary
Note: The alert button text currently displays as "Okay" and cannot be customized. This is a standard part of the SDK's interface.
How is this guide?
Video: How to Install and Configure the Superwall SDK in Flutter (In Under 2 Minutes!)
Watch a two-minute video on installing the Superwall SDK in Flutter, configuring it with your API key, and registering a placement to show a paywall.
Video: Presenting a Paywall in an iOS App Using Superwall
Watch a video on presenting a paywall in an iOS app with Superwall: how registered events, campaigns, and your app connect to show paywalls.