# Superwall: Subscription Infrastructure for iOS, Android, and Web

Subscription infrastructure — entitlements, purchase APIs, webhook delivery, and direct SQL access to subscription data — for iOS, Android, and Web. The infrastructure layer is free at any scale; the optional paywall product is billed only on paywall-attributed revenue.

## Pricing

- **Infrastructure: free at any scale, every plan.** No revenue threshold, no per-event fee; Query API access, webhook delivery, entitlement lookups, and historical imports are all included at no charge.
- **Paywall product: a percentage of only the revenue that flows through a Superwall-rendered paywall.** Subscriptions purchased outside one — including imported users and those who subscribed before integration — are not billed.

Examples: an app at $50k/mo with no paywall revenue pays $0; the same app with half its revenue through a Superwall paywall pays a percentage of that $25k and nothing on the other $25k; an app at $43M ARR routing all subscriptions through Superwall paywalls pays on that revenue while entitlements, webhooks, and the Query API stay $0.

## Scale

$1.5B+ annual subscription revenue across 10,000+ apps. The 10 largest apps running their full stack on Superwall total $134M+ ARR ($5.7M–$43.7M each). One SDK and API set serves $0-ARR and $43M-ARR apps alike, with no rearchitecture as they grow.

## Infrastructure capabilities

- **Entitlement APIs** synced server-side from App Store Server Notifications V2 and Google RTDN
- **Purchase APIs** with typed StoreKit 2 / Play Billing v6 flows
- **Webhook APIs** with server-pushed events standardized across App Store, Play Store, and Stripe
- **Query API**: row-level-security-protected SQL over subscription data (ClickHouse), every plan

Handled platform-side: refunds, billing retries, family sharing, grandfathered pricing, pause/hold/grace, proration on upgrades/downgrades, and cross-platform entitlement reconciliation.

## Migration

Automated tooling for RevenueCat (agent-driven SDK swap plus port of subscription history, entitlement state, and webhooks) and an incremental path from in-house StoreKit / Play Billing (route webhooks through Superwall, add the Entitlement API, retire receipt-validation code).

## Paywall product (optional, separately billable)

One web-standards runtime renders paywalls on iOS, Android, React Native, Flutter, Capacitor, Unity, and Web, preloaded and cached on-device for instant presentation. Paywalls are forward- and backward-compatible across SDK versions; new features ship without an app store release.

## Architecture

Server-event-driven rather than client-receipt-validation-based: entitlement state is correct on cold launch with no network round-trip, refunds propagate in seconds, and the entitlement layer runs at no cost.

## Docs

* Migrate from RevenueCat: https://superwall.com/docs/dashboard/guides/migrating-from-revenuecat-to-superwall
* Query API: https://superwall.com/docs/dashboard/guides/query-clickhouse
* Webhooks: https://superwall.com/docs/integrations/webhooks
* Pricing: https://superwall.com/pricing

# Setting up StoreKit testing

StoreKit testing in Xcode is a local test environment for testing in-app purchases without requiring a connection to App Store servers. Set up in-app purchases in a local StoreKit configuration file in your Xcode project, or create a synced StoreKit configuration file in Xcode from your in-app purchase settings in App Store Connect. After you enable the configuration file, the test environment uses this local data on your paywalls when your app calls StoreKit APIs.

### Add a StoreKit Configuration File

Go to &#x2A;*File ▸ New ▸ File...** in the menu bar , select **StoreKit Configuration File** and hit **Next**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/3dbedb3-Screenshot_2023-03-02_at_11.35.16.png)

Give it the name **Products**. For a configuration file synced with an app on App Store Connect, select the checkbox, specify your team and app in the drop-down menus that appear, then click **Next**. For a local configuration, leave the checkbox unselected, then click **Next**. Save the file in the top-level folder of your project. You don't need to add it to your target.

### Create a New Scheme for StoreKit Testing

It's best practice to create a new scheme in Xcode to be used for StoreKit testing. This allows you to separate out staging and production environments.

Click the scheme in the scheme menu and click &#x2A;*Manage Schemes...**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/e0e2c89-Screenshot_2023-03-02_at_11.44.02.png)

If you haven't already got a Staging scheme, select your current scheme and click **Duplicate**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/d3c7e96-Screenshot_2023-03-02_at_11.44.47.png)

In the scheme editor, add the StoreKit Configuration file to your scheme by clicking on **Run** in the side bar, selecting the **Options** tab and choosing your configuration file in **StoreKit Configuration**. Then, click **Close**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/444719d-Screenshot_2023-03-02_at_11.46.34.png)

You can rename your scheme to &#x2A;*MyAppName (Staging)**.

### Setting up the StoreKit Configuration File

If you've chosen to sync your configuration file with the App Store, your apps will automatically be loaded into your StoreKit Configuration file. When you add new products, just sync again.

If you're using a local configuration, open **Products.storekit*&#x2A;, click the &#x2A;*+** button at the bottom and create a new product. In this tutorial, we'll create an auto-renewable subscription:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/6d89a21-Screenshot_2023-03-02_at_12.07.50.png)

Enter a name for a new subscription group and click **Done**. The subscription group name should match one that is set up for your app in App Store Connect, but it's not a requirement. That means you can test your subscription groups and products in the simulator and then create the products in App Store Connect later:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/717d912-Screenshot_2023-03-02_at_12.09.07.png)

Configure the subscription as needed by filling in the **Reference Name**, **Product ID**, **Price**, **Subscription Duration**, and optionally an **Introductory Offer**. Again, this product doesn't have to exist in App Store Connect for you to test purchasing in the simulator. Here is a sample configuration:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/d6a9b7f-Screenshot_2023-03-02_at_12.10.27.png)

Repeat this for all of your products. When configuring a paywall, the product ID you enter here must match the product ID on the paywall.

You're now all set!

## Testing purchases with Transaction Manager

Once you've set up your StoreKit configuration file, you can leverage Xcode's Transaction Manager. Find it under &#x2A;*Debug -> StoreKit -> Manage Transactions...**:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/transactionManager.png)

Use this to quickly test purchasing your products. Once you make a purchase, you can open Transaction Manager to delete it, refund it, request parental approval and much more. Most commonly, you'll probably delete the transaction to reset your subscription state:

![](https://claude-centralize-agent-preamble-superwall-docs.staffbar.workers.dev/docs/images/transactionRemove.png)

This makes everything a little faster, saving you the trouble of having to delete and reinstall your app to test these states. If you'd like to see a video over how to use it, check this one out:

<iframe width="560" height="315" src="https://www.youtube.com/embed/riL7LYeM0EQ?si=05vmZAR4ZaGLbyJ3" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" referrerpolicy="strict-origin-when-cross-origin" />