Skip to main content

Getting Started with RevenueCat

This guide will walk you through the essential steps to integrate RevenueCat with your application, focusing on App Store Connect configuration.

What’s RevenueCat Integration?

RevenueCat helps you manage subscriptions and in-app purchases for your mobile app. This integration allows you to monetize your OnSpace-built app with ease.

1. Prerequisites

Step 1: Create RevenueCat Account

Sign up for RevenueCat
  • Go to RevenueCat and create an account
  • Select Apple as your platform during setup
Hero Dark

Step 2: Generate App Store Connect API Key

Navigate to App Store ConnectUsers and AccessIntegrationsTeam Keys Hero Dark

Create New API Key

  1. Click “Create New API Key” button
  2. Set Access Level to “App Manager” (minimum required)
Hero Dark
  1. Download the API key (.p8 file) and save it securely
  2. Copy the Issuer ID from the API page
Hero Dark

Step 3: Upload API Key to RevenueCat

Return to RevenueCat dashboard Hero Dark Upload the .p8 file you downloaded Paste the Issuer ID you copied from App Store Connect Hero Dark Save the configuration

Step 4&5: Select Your App

RevenueCat will automatically read your apps from App Store Connect:
  • Select the app you want to set up with RevenueCat
  • Don’t have an app yet? Build your first app with OnSpace and publish it to the App Store first
Hero Dark Hero Dark

Step 6: Set Up In-App Purchase Configuration

Navigate to App Store ConnectUsers and AccessIntegrationsIn-App Purchase

Generate In-App Purchase Key

Hero Dark
  1. Click “Go to In-App Purchase Keys”
  2. Navigate to Users and Access → Integrations
Hero Dark
  1. Select In-App Purchase
  2. Click “Generate In-App Purchase Key” or the ”+” symbol
  3. Enter a name for the key when prompted
Hero Dark Important Notes You have one opportunity to download the API key The key will appear under “Active Keys” Upload this key to RevenueCat dashboard

Step 7: Product Setup

Skip manual product creation in RevenueCat. Instead:
  1. Set up products in App Store Connect first
  2. Import products directly back to RevenueCat
  3. This ensures consistency and reduces setup errors

Step 8: Export Dashboard

  1. Click “Export Dashboard”
  2. You’re all set! Your RevenueCat integration is now complete
Hero Dark

2. Add App Configuration

  • Navigate to your project settings and begin configuring your app.
Hero Dark

3. Select App Store

  • Choose App Store as your platform.
Hero Dark

4. Add App Bundle ID

Hero Dark
  • Where to find your “App Bundle ID”:
    1. Go to App Store Connect.
    2. Navigate to General ➡️ App Information.
    3. Copy the Bundle ID found under the General Information section.
  • Paste this Bundle ID into the corresponding field in RevenueCat.
Hero Dark

5. Add App-Specific Shared Secret

Hero Dark
  • Where to find your “App-specific Shared Secret”:
    1. Go to App Store Connect.
    2. Navigate to General ➡️ App Information.
    3. Locate the App-Specific Shared Secret section.
Hero Dark
  1. Click Manage ➡️ Generate.
Hero Dark
  1. Copy the generated Shared Secret.
Hero Dark
  • Paste this Shared Secret into the designated field in RevenueCat.
Hero Dark

6. Add In-App Purchase Key Configuration

Hero Dark
  • Where to find your “In-app purchase key configuration”:
    1. Go to App Store Connect.
    2. Navigate to Users and Access ➡️ Integrations.
    3. Select In-App Purchase.
Hero Dark
  1. Click Generate In-App Purchase Key, or click the ”+” symbol next to the “Active” header if you have generated one previously.
  2. Enter a name for the key when prompted.
Hero Dark
  1. Once generated, your key will appear under Active Keys. You will have one opportunity to Download API Key.
Hero Dark
  1. Store this downloaded .p8 file securely, as you will need to upload it to RevenueCat.
  • Uploading the In-App Purchase Key to RevenueCat:
    1. In the RevenueCat dashboard, select your App Store app from the Apps & providers page within your project settings.
    2. Within your app settings, go to the In-app purchase key configuration tab.
    3. Upload the .p8 file you downloaded from App Store Connect.
Hero Dark

7. Add App Store Connect API

Hero Dark
  • Where to find your “App Store Connect API”:
    1. On App Store Connect, go to Users and AccessIntegrationsApp Store Connect API.
Hero Dark
  1. Click to create a new App Store Connect API key.
  2. Ensure the newly created key has at least the App Manager access level.
Hero Dark
  1. Download the API key (.p8 file) and save it securely.
  • Uploading the App Store Connect API Key to RevenueCat:
Hero Dark
  1. In the RevenueCat dashboard, select your iOS app from the Apps & providers page in the navigation.
  2. Within your app settings, go to the App Store Connect API tab.
  3. Upload the .p8 file you downloaded from App Store Connect.
  4. You will then be prompted to input your Issuer ID, which you should have saved from when you created the API key.
Hero Dark
  1. You will also need to input your Vendor number. This can be found in App Store Connect under Payments and Financial Reports (typically in the top left corner of the page).
Hero Dark Hero Dark
  1. Click Save Changes in the RevenueCat dashboard.

8. Create Subscriptions

  • Setting up Subscriptions in App Store Connect:
    1. Go to App Store Connect ➡️ Monetization ➡️ Subscriptions ➡️ Create.
Hero Dark
  1. Create Reference Name: This is an internal name for your subscription.
Hero Dark
  1. Create Subscription: Fill in both the Reference Name and Product ID. For example, for a monthly subscription, you might name it “monthly_subscription” and set the Product ID accordingly.
Hero Dark
  1. Ensure you Set Subscription Duration (e.g., Monthly).
Hero Dark
  1. Availability: By default, it will be set up globally.
Hero Dark
  1. Subscription Prices: Select the desired price from the dropdown. This will automatically convert to the global pricing table.
Hero Dark Hero Dark
  1. Localization: Add a Subscription Group Display Name. This is what users will see.
  2. Review Information: Please ensure you include a screenshot of your app and your review notes in this section.
  3. Make sure to Save your subscription. Once you’ve done these, all statuses will automatically change to “Ready to Submit.
Hero Dark
  1. Repeat this process for any other subscription durations (e.g., yearly).
  2. Localization: You can use different subscription group display names and app name display options for each localization.
Hero Dark Hero Dark
  • Importing Products into RevenueCat:
    1. Navigate back to RevenueCat.
    2. Go to Product Catalog ➡️ Entitlements.
    3. Click New Entitlement (e.g., “pro”).
Hero Dark
  1. Next, go to Product Catalog ➡️ Products.
Hero Dark
  1. Select the app you want to add products to.
Hero Dark
  1. Choose Import Products from App Store Connect. RevenueCat will pull the product data directly.
Hero Dark Hero Dark
  1. Go back to Entitlements, click on the entitlement you created (e.g., “pro”).
Hero Dark
  1. Click Attach to link your products to the entitlement.
Hero Dark Hero Dark
  • Setting Up Offerings in RevenueCat:
    1. Go to Product Catalog ➡️ Offerings.
Hero Dark
  1. Set up a New Offering.
Hero Dark
  1. Create a New Package within the offering.
Hero Dark
  1. Add packages for your different subscription durations (e.g., “Annual” and “Monthly”).
Hero Dark