Natively Docs
Join our community 🔥
  • 👩‍🚀Getting Started
    • What is Natively?
    • Why Natively?
    • FAQ
    • Create Your First App
  • 🚀Natively Platform
    • 🚉Releases
    • 🖌️Appearance
      • 😼App Icon
      • 📱Loading Screen
      • 📱Error Screen
      • 🎨Style
    • 🎬Preview
    • ⭐Features
      • 🛳️Bottom Bar
      • 🚇Deeplinks
        • 🔥Firebase
        • 🔗Universal Links
        • 🌱Branch.io
      • 📍Geolocation
      • 🔔Notifications
        • 📲OneSignal Notifications
        • 🔥Firebase Notifications (Advanced)
      • 📒Contacts
      • 👩‍🎨Social Auth
        • 🍏Sign In with Apple
      • 💟HealthKit
      • 💰Purchases
      • 🤑Admob
      • 💳NFC
      • 📷Camera
      • 📂Photo Library
      • 🎤Microphone
      • 📈Analytics
        • 🕊️AppsFlyer
        • 😛Facebook
    • 🚚Publish
      • 🍏iOS App
      • 🤖Android App
    • ⚙️Settings
    • 🙈Subscription Plans
  • Guides
    • 🧋Integration (Native Features)
      • 🏅How to get started?
      • ℹ️Device
      • ℹ️Browser Info
      • 🛳️Bottom Bar
      • ✂️Clipboard
      • 🚦Push Notifications - OneSignal
      • 🚦Push Notifications - Firebase (Advanced)
      • 📍Geolocation
      • 📦App Storage
      • 🗝️Biometrics & Credentials
      • 📧Native SMS/Email
      • 📅Native Date Picker
      • 📸Native Camera
      • 🎙️Native Audio Recorder
      • 🈁Native Scanner (QR/Barcode)
      • 📔Contacts
      • 🍏Apple Sign In
      • ❤️HealthKit
      • 💸In-App Purchases
      • 🤑Admob
      • 💳NFC
      • 🥑Show Toast/Banner
      • ⏳Show/Hide Loading Screen
      • 🥑Haptic Feedback
      • 🖼️Share Media/Files
      • 📱Open an external App/URL
      • ✍️Request User's review
      • ↔️getInsets
      • 🎨Control Style & Colors
    • 🔍Troubleshooting
    • 🐈Setup RevenueCat App
    • 🚑Setup Admob App
    • 🚥Setup One Signal App
    • 🧑‍🤝‍🧑Setup website Universal Links (Deeplinks)
    • 🍕Testing & Submitting your app
    • 🔑Generate iOS Push Key (NEW)
    • 🔑Generate iOS Push Certificate (Legacy)
    • 🤝Affiliate program
    • 📕For Partners: Natively Brand Book.
Powered by GitBook
On this page
  • Video Guides
  • Prerequisites
  • RevenueCat Integration
  • 1. Revenue Cat's initial setup
  • 2. Connect Revenue Cat with your Natively App
  • 3. Google Play / App Store products setup
  • 4. Revenue Cat products setup
  • 5. Development
  • 6. Testing

Was this helpful?

  1. Guides

Setup RevenueCat App

Natively uses RevenueCat service to integrate In-App Purchases for iOS & Android apps.

PreviousTroubleshootingNextSetup Admob App

Last updated 1 year ago

Was this helpful?

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 to setup Stripe,

Video Guides

Prerequisites

RevenueCat Integration

Integrating the RevenueCat in your app comprises of the following steps:

1. Revenue Cat's initial setup

Follow the first 3 steps of the following guide by RevenueCat to create and configure your RevenueCat app:

2. Connect Revenue Cat with your Natively 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:

  1. Open your Natively's app dashboard from desktop

  2. Go to Features -> Purchases and enable it.

And finally, order a new build. We will inject the following keys into your app bundle.

3. Google Play / App Store products setup

Before incorporating subscriptions into your app, you will first need to create the subscription products in the Google Play Store and App Stores.

Google Play Store

To create a subscription product in the Google Play Store:

  1. Open the Subscriptions tab (from the left side menu). Check if you see Create subscription button. If you do, you can skip this step.

  2. 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:

  1. Download the AAB or APK file of your app, that was delivered on your email (or from the Natively portal)

  2. Go to the Play Store. Open your Closed testing track and create a new release.

  3. Upload your App Bundle or APK, enter the Release name and create the release.

  4. Go back to Google Play Console and open the Subscriptions tab again. It should let you manage subscriptions now.

App Store

To create a subscription product in App Store:

  1. Make sure that the state of your purchases is Ready to Submit.

4. Revenue Cat products setup

RevenueCat uses an Entitlements system to control access to premium features, and Offerings to manage the set of products you offer to customers.

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:

Connect to Google Play Store

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".

Connect to Apple App Store

To connect the RevenueCat servers to App Store, follow the instructions present on this page:

And this one:

5. Development

6. Testing

Creating Test Users

If you are new to RevenueCat, it's recommended you read this first:

Enter your Public app-specific API Keys to relevant fields. You can find it in your project API Keys -> Public app-specific API keys

Open your app on the .

Now, follow by RevenueCat to configure your products or subscriptions on Google Play.

Open and navigate to your app.

Follow by RevenueCat to configure your products or subscriptions for App Store

Navigate to the page and sign the Paid Apps agreement. The state must be Active before making purchases, even in the sandbox mode.

Navigate the page and add sandbox testers. Make sure to confirm the emails of all sandbox testers.

Learn more about configuring products in RevenueCat .

To use a Stripe with Android & iOS subscription/products, check page for more details.

Test on Android: To create test users to try Play Store purchases in the sandbox mode, follow 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 by RevenueCat.

🐈
What is RevenueCat?
RevenueCat
Google Play Console
this guide
App Store Connect Portal
this guide
Agreements
Testers
here
this
💸In-App Purchases
this guide
this guide
RevenueCat
RevenueCat
Part 1
Part 2
LogoQuickstart – RevenueCatRevenueCat
LogoPlay Store Service Credentials – RevenueCatRevenueCat
LogoApple App-Specific Shared Secret – RevenueCatRevenueCat
LogoApp Store Connect API Key ConfigurationRevenueCat
Add at least 1 Entitelement
Add at lest 1 Offering
Add iOS & Android (Stripe is optional)