Search docs/
Getting StartedPlugins

Purchases

Purchases is a cross platform solution for managing in-app subscriptions. A backend is also provided via RevenueCat

Features

RevenueCat
Server-side receipt validation
➡️ Webhooks - enhanced server-to-server communication with events for purchases, renewals, cancellations, and more
🎯 Subscription status tracking - know whether a user is subscribed whether they're on iOS, Android or web
📊 Analytics - automatic calculation of metrics like conversion, mrr, and churn
📝 Online documentation up to date
🔀 Integrations - over a dozen integrations to easily send purchase data where you need it
💯 Well maintained - frequent releases
📮 Great support - Help Center
🤩 Awesome new features

Getting Started

For more detailed information, you can view our complete documentation at docs.revenuecat.com.

https://github.com/RevenueCat/cordova-plugin-purchases

Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。

Contact Us Today!

インストール

ionic cordova plugin add cordova-plugin-purchases@1.1.0npm install @ionic-native/purchasesnpm install cordova-plugin-purchases@1.1.0npm install @ionic-native/purchasesionic cap sync
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、エンタープライズプラグインに興味があれば 連絡ください

サポートしているプラットフォーム

  • Android
  • iOS

利用方法

React

See here.

Angular

1. Get a RevenueCat API key

Log in to the RevenueCat dashboard and obtain a free API key for your application.

2. Initialize the SDK

You should only configure Purchases once (usually on app launch) as soon as your app has a unique user id for your user. This can be when a user logs in if you have accounts or on launch if you can generate a random user identifier.

 import { Platform } from "@ionic/angular";
 import { Purchases } from "@ionic-native/purchases/ngx";

 constructor(public platform: Platform, private purchases: Purchases) {
     platform.ready().then(() => {
         this.purchases.setDebugLogsEnabled(true); // Enable to get debug logs
         this.purchases.setup("my_api_key", "my_app_user_id");
     }
 }

3. Quickstart

Please follow the Quickstart Guide for more information on how to use the SDK

Requirements

Requires XCode 11.0+ and minimum target iOS 9.0+ This plugin has been tested with cordova-plugin-purchases@