Google は、黒人コミュニティのための人種的公平の促進に取り組んでいます。詳細をご覧ください。

Enable In-App Purchases with RevenueCat

RevenueCat
Made by RevenueCat

Facilitates in-app purchases and subscriptions, controls access to premium content, and syncs purchase information to Firestore.

この拡張機能の動作

RevenueCat’s app monetization platform empowers developers to confidently deploy in-app purchases and subscriptions, centralize data, and grow revenue. RevenueCat builds and adapts to the ever-changing needs of in-app purchase infrastructure, freeing app businesses to invest their time and resources in growing their product.

Install this extension to use Firebase services as your RevenueCat backend for in-app purchases on Apple App Store, Google Play Store, and Amazon Appstore.

The extension makes in-app purchases and subscriptions, controls access to premium content, and syncs customer purchase information to Firestore using RevenueCat .

This extension can:

  • Store purchase lifecycle events (e.g., trial starts, purchases, subscription renewals, billing issues) in Firestore and react to them.
  • Store and update information about customers and their purchases in Firestore.
  • Update information about customers' entitlements as Firebase Authentication Custom Claims .

RevenueCat supports both native iOS and Android apps as well as hybrid cross-platform apps in React Native , Flutter , Unity , Cordova , and Ionic .

You need to create a RevenueCat account or already have one set up to use this extension.

Events

This extension emits events, which allows you to listen to and run custom logic at different trigger points during the functioning of the extension. For example you can listen to events when a new subscription has been purchased via the initial_purchase event, or whenever a subscription or non-renewing purchase has been cancelled through the cancellation event.

Additional setup

Firebase

Before installing this extension, set up the following Firebase services in your Firebase project:

RevenueCat
Mobile App

Follow the steps in the RevenueCat documentation to add the RevenueCat SDK to your mobile app. In addition, follow the instructions to set up the Firebase Integration inside the app by:

Billing

This extension uses the following Firebase services which may have associated charges:

This extension also uses the following third-party services:

You are responsible for any costs associated with your use of these services.

この拡張機能をインストールする方法

Firebase コンソールの使用

拡張機能のインストールと管理は、Firebase コンソールで行えます。

コンソールを使用してインストールする

Firebase CLI の使用

拡張機能のインストールと管理は、Firebase CLI でも行えます。

ステップ 1: 以下の npm コマンドを実行して、CLI をインストールするか、最新バージョンの CLI に更新します。

npm install -g firebase-tools
正常に機能しない場合は、 Firebase CLI リファレンス を確認するか、 npm のアクセス権 を変更してください。

ステップ 2: 新しい Firebase プロジェクトのディレクトリを設定 するか、既存のプロジェクト ディレクトリに移動します

ステップ 3: 次を実行して、この拡張機能を 拡張機能のマニフェスト に追加します

firebase ext:install revenuecat/firestore-revenuecat-purchases --local --project=projectId_or_alias

Step 4 (Optional): Test this extension locally with the Firebase Emulator Suite

firebase emulators:start

ステップ 5: マニフェストにある拡張機能をプロジェクトに デプロイ します

firebase deploy --only extensions --project=projectId_or_alias
サポート対象
Cloud Firestore Authentication
作成者
ライセンス
apache-2.0
バージョン
0.1.3