appkickstarter logoAppKickstarter

RevenueCat

Setup and monetize your app using RevenueCat

Introduction

We use RevenueCat to handle in-app purchases, subscriptions, paywalls, and more.

Everything to get this to work in the app is setup. However, you would need to setup the parts outside of the app (setting up RevenueCat account, App Store Connect products & offerings, etc.). This page will guide you through this.

Prerequisites

You will need access to the Apple Developer Program and/or Google Play Console

You will also need the app binary to be uploaded to the app stores before you can create products.

Setup

Sign up for an account

Go to https://app.revenuecat.com/ and click sign up

  • When asked "What platforms are you building for?", select React Native

Set up App Store Connect API

Sharing your App Store Connect API keys will allow us to get you started even faster! During the onboarding, it should provide you with the Team Keys link in App Store Connect to create a new Team Key.

Download the private key, and make note of the Issuer ID.

RevenueCat App Store Connect Setup

Provide the private key and Issuer ID to RevenueCat, then verify the key! If it fails, make sure you've accepted all license agreements in App Store Connect.

RevenueCat App Store Connect Setup Completed

Setup In-App Purchase Configuration

This allows RevenueCat to show you important data like monthly recurring revenue and sales; consolidating all your financials in one place.

The RevenueCat onboarding will also guide you through this. The steps basically the same as the previous step: create a key, download it, upload it to RevenueCat and configure the Issuer ID.

Import your products

With the above configured, you can now select the entitlements (an elevated level of access that grants users certain features, like "Pro Membership").

On this step of the onboarding, you can create new entitlements and the products that can be bought to grant that entitlement, or import them from App Store Connect.

Copy Public API Key to Environment Variables

You can now proceed to the dashboard and go to the API Keys menu item. This is where you can get the public API key that is meant to be embedded into your app.

RevenueCat Public API Key Setup

Take this key and update the EXPO_PUBLIC_REVENUECAT_IOS_PUBLIC_API_KEY and/or EXPO_PUBLIC_REVENUECAT_ANDROID_PUBLIC_API_KEY environment variable (.env.development for local development, or in EAS Environment Variables if using EAS to publish your app) with this value.

Now you are all set! We recommend testing via a physical device (not simulator) due to limitations with the native APIs.

You can now follow Expo's official guide to setting up RevenueCat to create your first paywall!

Additional Reading