đSetup RevenueCat App
Natively uses RevenueCat service to integrate In-App Purchases for iOS & Android apps.
Last updated
Natively uses RevenueCat service to integrate In-App Purchases for iOS & Android apps.
Last updated
RevenueCat makes implementing in-app purchases and subscriptions easy by handling all purchase validation operations. With RevenueCat, you can allow users to purchase subscriptions, make sure your user pays for some features, and more. You can use RevenueCat to setup Stripe,
If you are new to RevenueCat, it's recommended you read this first: What is RevenueCat?
Integrating the RevenueCat in your app comprises of the following steps:
Follow the first 3 steps of the following guide by RevenueCat to create and configure your RevenueCat app:
After successfully creating Android/iOS app in the RevenueCat you need to link it with the Natively. For such purpose, follow the next steps:
Open your Natively's app dashboard from desktop
Go to Features -> Purchases and enable it.
Enter your Public app-specific API Keys to relevant fields. You can find it in your RevenueCat project API Keys -> Public app-specific API keys
And finally, order a new build. We will inject the following keys into your app bundle.
Before incorporating subscriptions into your app, you will first need to create the subscription products in the Google Play Store and App Stores.
To create a subscription product in the Google Play Store:
Open your app on the Google Play Console.
Open the Subscriptions tab (from the left side menu). Check if you see Create subscription button. If you do, you can skip this step.
If you see a message saying 'Your app doesn't have any in-app products yet' like in this picture:
You will need to complete the following steps:
Download the AAB or APK file of your app, that was delivered on your email (or from the Natively portal)
Go to the Play Store. Open your Closed testing track and create a new release.
Upload your App Bundle or APK, enter the Release name and create the release.
Go back to Google Play Console and open the Subscriptions tab again. It should let you manage subscriptions now.
Now, follow this guide by RevenueCat to configure your products or subscriptions on Google Play.
To create a subscription product in App Store:
Open App Store Connect Portal and navigate to your app.
Follow this guide by RevenueCat to configure your products or subscriptions for App Store
Make sure that the state of your purchases is Ready to Submit.
Navigate to the Agreements page and sign the Paid Apps agreement. The state must be Active before making purchases, even in the sandbox mode.
Navigate the Testers page and add sandbox testers. Make sure to confirm the emails of all sandbox testers.
RevenueCat uses an Entitlements system to control access to premium features, and Offerings to manage the set of products you offer to customers.
Learn more about configuring products in RevenueCat here.
You must create at least one entitlement and at least one offering for using RevenueCat with Natively.
After the creation, the Products, Entitlements, and Offers will look like this:
To use a Stripe with Android & iOS subscription/products, check this page for more details.
To allow RevenueCat servers to communicate with Google on your behalf, please follow the instructions present on this page:
It may take a few hours for these credentials to propagate. Until then, your purchases can fail with "There was a credentials issue. Check the underlying error for more details".
To connect the RevenueCat servers to App Store, follow the instructions present on this page:
And this one:
Test on Android: To create test users to try Play Store purchases in the sandbox mode, follow this guide by RevenueCat. You need to create a test user, configure licensing testing, create a closed track, and add a tester.
Test on iOS: To create test users to try App Store purchases in the sandbox mode, follow this guide by RevenueCat.