Skip to main content

Step-by-Step Tutorial: RevenueCat in a Rork App (End-to-End)

1) Build your app in Rork

  1. Write your prompt (example from video: “note-taking calorie tracker with AI calorie estimate”).
  2. Submit prompt → Rork builds the app.
  3. If you think of additional features mid-build (e.g., “scan your meal”), add them to the queue so Rork can handle them after the first prompt.

2) Connect RevenueCat inside Rork

  1. In Rork, go to Integrations.
  2. Click Connect with RevenueCat.
  3. Log in / sign up in RevenueCat.
  4. Authorize Rork to access your RevenueCat account.
  5. Click Create new project in RevenueCat.
    • Name it whatever you want (e.g., “Calorie Tracker”).
  6. Go back to Rork chatbot and say:
    “Set up RevenueCat.”
  7. Rork will set up:
    • Offerings
    • Products
    • Entitlements
    • Environment variables / API keys
  8. When Rork asks to set environment variables → click Yes.

3) Test purchases in RevenueCat Test Store (sandbox inside RC)

  1. In the Rork app, tap the subscription (example: $40/year).
  2. You’ll see options like:
    • Test a valid purchase
    • Test failed purchase
  3. Tap Test valid purchase.
  4. In the RevenueCat dashboard → Overview → toggle Sandbox data.
  5. If you see sandbox MRR / the subscription (ex: $40/year), then:
    ✅ Rork + RevenueCat Test Store are connected.
Note: These are NOT real App Store subscriptions yet.
Image

4) Push the app to TestFlight (required for real Apple IAP)

  1. In Rork, go to Get users → Submit to TestFlight.
  2. Click New submission.
  3. (Optional but recommended) Generate an app icon using Rork.
  4. Fill out Apple Developer information when prompted.
  5. Submit and wait for the build/upload to complete.
  6. Go to App Store Connect. Complete the required compliance info so the build is testable.
Image

5) Create subscriptions in App Store Connect (real products)

Create a Subscription Group

  1. App Store Connect → Subscriptions
  2. Create Subscription Group
    • Name it something simple (example: “Subscriptions”)
Image

Create monthly subscription (repeat for yearly)

  1. Create Subscription
  2. Set:
    • Reference name: “Monthly subscription.”
    • Product ID: “monthly_subscription” (or same name)
  3. Configure required metadata:
    • Duration: 1 month
    • Availability: Everywhere
    • Price: example $4.99/month
  4. Add localization:
    • Display name: “Monthly subscription.”
  5. Add a screenshot/image of your paywall (required for submission readiness)
  6. Submit / Save
  7. Repeat the same steps for Yearly.
✅ After this, products should be “Ready to submit” in App Store Connect. Image

6) Connect App Store Connect to RevenueCat (so products sync)

RevenueCat → Apps → iOS app Image

Add App Info

  1. Copy your Bundle ID from App Store Connect into RevenueCat.

Add In-App Purchase Key

  1. App Store Connect → Users and Access → Integrations
  2. Under In-App Purchase, click the +
  3. Name it (example: “RevenueCat Calorie Tracker”)
  4. Download the key file
  5. Upload/drag into RevenueCat
  6. Copy Issuer ID (above the integration keys list) → paste into RevenueCat
Image

Add App Store Connect API Key

  1. Still in Users and Access → Integrations
  2. Create App Store Connect API key
  3. Download it → upload into RevenueCat
  4. Enter Issuer ID again
Image

Add Vendor Number

  1. App Store Connect → Reports (Business section)
  2. The top left shows the Vendor Number
  3. Copy → paste into RevenueCat
  • Toggle: Track new purchases from server-to-server notifications

Add App-Specific Shared Secret

  1. App Store Connect → Apps → Your app → App Information
  2. Scroll to App-Specific Shared Secret
  3. Click Manage → Generate
  4. Copy secret → paste into RevenueCat
  5. Click Save changes in RevenueCat
✅ Now: Apple ↔ RevenueCat is connected.

7) Import your App Store products into RevenueCat

  1. RevenueCat → Product Catalog
  2. Choose Default (or your active catalog)
  3. Click Add new product → Import products
  4. Select the monthly + yearly products → Import
  5. For each imported product:
    • Attach an Entitlement (same entitlement for both is common)
Image

8) Attach products to your RevenueCat Offering

  1. RevenueCat → Offerings → Default
  2. Click Edit
  3. Attach each App Store product to the correct package
  4. Click Save

9) Final test: TestFlight purchase

  1. Install your app via TestFlight
  2. Open your paywall in-app
  3. Your subscriptions should now be purchasable via TestFlight and in production after release.

Common Issues:

  • Make sure all of your Agreements/Bank information is active. (Your subscriptions will not work if this isn’t set up
Image
  • App store public api key isn’t set properly.
Image
  • Just give this key to Rork and say, “Make sure Apple and RevenueCat are connected”.

What to do next:

After adding a paywall, you will still be rejected from the App Store if you do not have a privacy policy, terms and conditions, and a visible EULA.

In your App Store description, make sure to mention that every feature requires a paid subscription if you are hard paywalling your app. If you do not, Apple will reject you.
How to create policies?