Lovable

How to use RevenueCat with a Lovable app (iOS and Android)

Updated November 30, 2026 · 3 min read · By the AppNative team

RevenueCat is the most common way to handle Apple and Google subscriptions behind one API. It can't run inside a plain web app, though. Your Lovable app needs a native shell that ships RevenueCat's SDK, and your backend needs to hear about renewals and cancellations. Here's the whole setup, including the parts people usually miss.

The short version

  • RevenueCat sits between your app and the stores. It validates purchases and tells you who has which entitlement.
  • A Lovable app needs Capacitor or a wrapper to run RevenueCat's SDK. A browser tab can't open Apple's purchase sheet.
  • Use the user's ID from your Lovable backend as the RevenueCat app user ID, so purchases follow the account, not the device.
  • Send RevenueCat webhooks to a Supabase Edge Function that updates the user's plan.
  • RevenueCat's Pro plan is free in months under $2.5K tracked revenue, then 1%.
On this page
  1. What RevenueCat does, and what it doesn't
  2. Three ways to run RevenueCat with Lovable
  3. Wiring entitlements into your Lovable backend
  4. Do you need RevenueCat at all?
  5. Questions people ask

What RevenueCat does, and what it doesn't

RevenueCat wraps StoreKit and Google Play Billing in one SDK, validates purchases on its servers, tracks each subscriber's status, and sends webhook events for things like a first purchase, a renewal, a cancellation or an expiration. It also has charts, experiments and a paywall builder.

It doesn't build your native app, create your store listings or get you through App Review. You still need a way to run its SDK on the phone, which for Lovable means Capacitor or a wrapper.

Three ways to run RevenueCat with Lovable

RouteWhat you doGood for
CapacitorAdd Capacitor and the @revenuecat/purchases-capacitor plugin to your Lovable repo, then build in Xcode and Android StudioDevelopers comfortable with native tooling
A wrapper with RevenueCat supportTurn on RevenueCat in Despia, Median, WebViewGold or AppNative and call it from your Lovable codeGetting into the stores quickly
Skip RevenueCatUse a wrapper that verifies StoreKit and Play Billing itself, like AppNative in native modeAvoiding the extra fee and a second dashboard

RevenueCat's Capacitor SDK needs Swift 5 or later and the In-App Purchase capability turned on in Xcode. On Android, keep your activity's launch mode at standard or singleTop, or purchases can be cancelled.

Wiring entitlements into your Lovable backend

Use one ID everywhere. When a user signs in, pass their ID from your Lovable backend (Supabase or Lovable Cloud) to RevenueCat. Restores, new devices and web purchases then all line up on the same account.

For the server side, set an authorization header value on the webhook in the RevenueCat dashboard. RevenueCat sends it with every event, and your Edge Function should reject requests without it. Each event carries the app user ID, so the function can update that user's plan or entitlements table.

If you also sell on the web with Stripe, write those purchases to the same table. Then a single check unlocks premium features in both places.

AppNative turns your web app into real native iOS and Android apps, handles the Apple and Google setup in the cloud, and can submit them for you.

Get started free

Do you need RevenueCat at all?

RevenueCat earns its fee if you want its charts, experiments and paywall tools, or you already run it on other apps. If you only need purchases to work and entitlements to land in your own database, a wrapper that handles StoreKit and Play Billing directly avoids the 1% once you pass $2.5K a month. At $10,000 in monthly tracked revenue, that 1% is $100 a month.

AppNative supports both modes per app, so you can start without RevenueCat and switch later, or the other way around. Compare every route in Lovable in-app purchases: 8 ways.

Questions people ask

Does RevenueCat work with Lovable?

Yes, through a native layer. Lovable builds a web app, so you add RevenueCat's SDK with Capacitor or a wrapper that supports RevenueCat, then call it from your Lovable code.

How much does RevenueCat cost?

RevenueCat's Pro plan has no charge in months under $2.5K monthly tracked revenue. Above that it's 1% of tracked revenue. Enterprise pricing is custom.

What user ID should I give RevenueCat?

The user's ID from your Lovable backend. Set it after sign-in so purchases follow the account across devices and restore correctly.

Is RevenueCat required for the App Store?

No. Apple requires its in-app purchase system, not RevenueCat. RevenueCat is a layer on top that some teams find convenient.

Can I test RevenueCat purchases before launch?

Yes. Use Apple's sandbox and TestFlight on iOS and a Google Play testing track on Android. RevenueCat marks sandbox events so you can tell them apart.

Sources we checked

Facts and prices were checked against these pages on November 30, 2026. Store rules change, so confirm anything critical with Apple or Google before you submit.

Keep reading