Use Cursor, Claude Code, or another AI to help you implement the Superwall integration with Appstack.
- Use Superwall in-app events to run enhanced app campaigns.
- Unlock attribution-based paywall optimization.
To successfully connect Superwall, you must:
- Have Owner/Admin access to an Appstack organization.
- Have access to the correct Superwall account.
Requirements
Use a Superwall SDK version that includes the Appstack integration attribute:| Platform | Package | Minimum version |
|---|---|---|
| iOS | Superwall-iOS | 4.12.11 |
| Android | Superwall-Android | 2.7.5 |
| Flutter | Superwall-Flutter | 2.4.11 |
| React Native / Expo | expo-superwall | 1.0.5 |
expo-superwall. The legacy react-native-superwall package is archived.
Connect to Superwall
Follow the steps to ensure the Superwall integration works:SDK configuration
To successfully receive the Appstack ID, set the Appstack integration attribute after the calls to Superwall and Appstack configure methods:To show paywalls based on where your users came from (paid ads), set Appstack’s attribution params as user attributes before your first
Superwall.register call. You do not need to repeat this for every placement.Learn more about how to use ad campaign data to show personalized paywalls and increase subscription revenue by reading this article.
Copy the credentials
- In Appstack, from the side menu, select Integrations > Superwall.
- Copy the access token.
- Copy the app ID.
Paste the credentials
- In Superwall, from the side menu, select Integrations > Appstack.
- Paste the access token.
- Paste the app ID.
Information
- After the integration is active on Superwall’s platform, it can take 30-60 minutes to appear as active on Appstack’s side.
- It’s recommended not to edit or modify the integration on Superwall’s platform to avoid attribution issues.
List of events
Below is a list of events you can forward to ad networks to optimize your campaigns.| Name | Definition |
|---|---|
sw_trial_started | Fired when a user begins a free trial. Triggered on the initial purchase when the period type is TRIAL. |
sw_trial_qualified | Fired when a free trial is still active two hours after it started — meaning the user did not cancel within the qualification window. |
sw_trial_converted | Fired when a free trial successfully converts to a paid subscription. This happens on the first renewal after the trial period ends. |
sw_intro_started | Fired when a user begins an intro offer — a paid trial at a discounted price (e.g., $0.99 for the first week). Triggered on the initial purchase when the period type is INTRO |
sw_trial_intro_started | Fired when either a free trial starts (sw_trial_started) or an intro offer starts (sw_intro_started). The event triggers as soon as at least one of these conditions is met. |
sw_trial_intro_qualified | Fired when either a free trial qualifies (sw_trial_qualified) or an intro offer starts (sw_intro_started). The event triggers as soon as at least one of these conditions is met. |
sw_initial_purchase | Fired when any of the following occur: a free trial starts (sw_trial_started), an intro offer starts (sw_intro_started), or a full-price subscription starts (sw_subscription_started). The event triggers as soon as at least one of these conditions is met. |
sw_initial_purchase_qualified | Fired when any of the following occur: a trial qualified happens (sw_trial_qualified), an intro offer starts (sw_intro_started), or a full-price subscription starts (sw_subscription_started). The event triggers as soon as at least one of these conditions is met. |
sw_subscription_started | Fired when a user starts a paid subscription at full price, with no trial or intro offer involved. Triggered on the initial purchase when the period type is NORMAL |
sw_subscription_renewed | Fired on each successful renewal of an active subscription. Indicates the user was billed again and remains subscribed for another period. |
sw_non_renewing_purchase | Fired when a user makes a one-time, non-subscription purchase — any product that is not an auto-renewing subscription (e.g., consumables or non-consumable in-app purchases). Unlike subscription events, this purchase does not renew automatically. |
Use Cursor, Claude Code, or another AI to validate your existing Superwall + Appstack integration.