RevenueCat

Build With RevenueCat

Build a customized mobile subscription business with RevenueCat. We do the heavy lifting of normalizing subscribers from any source and maintain a single source of truth for subscription status, so you can get back to building your app.

RevenueCat is a powerful, secure, reliable, and free to use in-app purchase server with global support. All you need to get started is an API key.

Cordova

Instructions for installing Purchases SDK for Cordova

What is RevenueCat?

RevenueCat is a scalable backend for in-app subscriptions and purchases. With RevenueCat, you can build and manage your mobile app business without having to set up or maintain any purchase infrastructure. Here you can read more about how RevenueCat fits into your app.

Installation

cordova plugin add cordova-plugin-purchases --save

Additional Android Setup

Include BILLING permission for Android projects

Include the BILLING permission in your AndroidManifest.xml file:

<uses-permission android:name="com.android.vending.BILLING" />

Additional iOS Setup

Add Strip Frameworks Phase

The App Store, in its infinite wisdom, still rejects fat frameworks, so we need to strip our framework before it is deployed. To do this, add the following script phase to your build.

  1. In Xcode, in project manager, select your app target.
  2. Open the Build Phases tab
  3. Add a new Run Script, name it Strip Frameworks
  4. Add the following command "${PROJECT_DIR}/../../node_modules/cordova-plugin-purchases/src/ios/strip-frameworks.sh" (quotes included)

Add In-app Purchase Capability to Project

The In-app Purchase capability isn't required to install the SDK, but it is required to make purchases.

  1. In Xcode, in project manager, select your app target.
  2. Open the Signing and Capabilities tab.
  3. Click the + Capability button and double-click on In-App Purchase.

Next Steps

Updated 16 days ago

Cordova


Instructions for installing Purchases SDK for Cordova

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.