アプリ内購入をCapacitorアプリに追加

AdaptyのCapacitor SDKを使用して、iOSとAndroidにアプリ内購入を統合。レシート処理、サブスクリプション状態の追跡、バックエンド構築の不要化を実現。すべての機能を1つの統合で。
import { adapty } from '@adapty/capacitor';
 
try {
  await adapty.activate({
    apiKey: 'YOUR_PUBLIC_SDK_KEY',
    params: {
        logLevel: 'verbose', 
      __ignoreActivationOnFastRefresh: true,
    }
  });
  console.log('Adapty activated successfully!');
} catch (error) {
  console.error('Failed to activate Adapty SDK:', error);
}

Capacitorアプリ内購入にバックエンドは不要

デモを予約

なぜAdapty SDKを選ぶのか?

プラットフォームを超えてサブスクリプションを追跡

iOSとAndroidの両方でユーザーの購読状態を常に把握可能。

バックエンドでのレシート検証

Adaptyが検証を自動で処理するため、自前の構築は不要。

あらゆるサブスクリプション状態を処理

無料トライアル、アップグレード、プロモーション、ファミリー共有、更新などを網羅。

エンタープライズレベルの基盤でスケール

頻繁なアップデート、安定したSDK、99.99%以上のSLAで運用。
プラットフォーム設定
Adapty SDKのインストール
await adapty.activate( 'PUBLIC_SDK_KEY', { customerUserId: 'YOUR_USER_ID', });
購入イベントの処理

Capacitor向けの簡単統合

CapacitorのIAPを処理する5つのSDKメソッドを使用

import { adapty } from '@adapty/capacitor';
 
try {
  const result = await adapty.makePurchase({ product });
  
  if (result.type === 'success') {
    const isSubscribed = result.profile?.accessLevels['YOUR_ACCESS_LEVEL']?.isActive;
    
    if (isSubscribed) {
      // Grant access to the paid features
      console.log('User is now subscribed!');
    }
  } else if (result.type === 'user_cancelled') {
    console.log('Purchase cancelled by user');
  } else if (result.type === 'pending') {
    console.log('Purchase is pending');
  }
} catch (error) {
  console.error('Purchase failed:', error);
}
import { adapty } from '@adapty/capacitor';
 
try {
  const profile = await adapty.restorePurchases();
  const isSubscribed = profile.accessLevels['YOUR_ACCESS_LEVEL']?.isActive;
  
  if (isSubscribed) {
    // Restore access to paid features
    console.log('Access restored successfully!');
  } else {
    console.log('No active subscriptions found');
  }
} catch (error) {
  console.error('Failed to restore purchases:', error);
}
 
 
 
 
 
import { adapty } from '@adapty/capacitor';
 
try {
  await adapty.identify({ customerUserId: "YOUR_USER_ID" });
  // successfully identified
} catch (error) {
  // handle the error
}
 
 
 
 
 
 
 
 
 
 
 
 
import { adapty } from '@adapty/capacitor';
 
const params = {
  email: '[email protected]',
  phoneNumber: '+18888888888',
  firstName: 'John',
  lastName: 'Appleseed',
  gender: 'other',
  birthday: new Date().toISOString(),
};
 
try {
  await adapty.updateProfile(params);
  console.log('Profile updated successfully');
} catch (error) {
  console.error('Failed to update profile:', error);
}
 
 
 
import { adapty } from '@adapty/capacitor';
 
try {
  await adapty.updateProfile({
    codableCustomAttributes: {
      key_1: 'value_1',
      key_2: 2,
      key_3: null, // to remove keys, pass null as their values
    },
  });
  console.log('Custom attributes updated successfully');
} catch (error) {
  console.error('Failed to update custom attributes:', error);
}
 
 
 
 
 
 
無料で始める

Adaptyはインディーから大手パブリッシャーまで、あらゆる段階のアプリを支えます

Cem Ortabas, Co-founder and CEO of HubX
「RevenueCat からの移行は私たちにとって簡単な決断ではありませんでした。成長する中でよりよいパートナーであると信じ、Adapty を選びました。振り返ると、それは正しい選択でした。いくつかの問題はあったものの、Adapty のチームは移行中やその後も常に私たちを助けてくれ、そのサポートは最高です。Adapty を信頼できるパートナーとしてお勧めします。」
Cem Ortabas
共同創設者兼 CEO, HubX
HUBX
Chris Bick, Founder and CEO of Bickster
「2021 年から Adapty と一緒に働いていますが、本当に満足しています。他のサブスクリプション管理プラットフォームも試したことがあるので比較できます。Adapty は何年にもわたって多くの機能を導入し、私たちの成長を常に支援してくれました。彼らは市場で最高の分析機能を持ち、考えうるすべてのインテグレーションがあります。アプリの収益を増やしたいなら、Adapty をぜひお勧めします。」
Chris Bick
創設者兼 CEO, Bickster
Bickster
Yalçın Özdemir, Founder & CEO of AppNation
「私たちは、収益化戦略を効果的に最適化するのに役立つ強力なペイウォール A/B テスト機能を持つ Adapty を選びました。使いやすいプラットフォーム、柔軟な価格設定、卓越したカスタマーサポートが Adapty を競合他社よりも優れた選択にしています。」
Yalçın Özdemir
創設者兼 CEO, AppNation
AppNation
Kyle Smith, Head of data at Smitten Dating
「Adapty のプラットフォームは、開発者でない人々が A/B テスト、ペイウォール、製品ミックス、価格構造を作成および管理するのを簡単にします。Amplitude や Mixpanel などの他の分析ツールに関連イベントを簡単に渡すことができる素晴らしい外部 API があります。」
Kyle Smith
Smitten Dating のデータ部門責任者
Smitten
Roi Mulia, Founder & CEO of SocialKit
「私たちは4ヶ月の間に300以上のペイウォールをテストしました。Adapty は基本的にペイウォールのあらゆる要素をテストできるため、それを活用しました。製品、タイトルテキスト、CTAボタン、画像、動画など、すべてをテストしました。Adapty の A/B テストを使って、月間収益を2倍にすることができました。一つのツールがそんなに大きな影響を与えることができるのか疑問でしたが、自分の目でそれを見ました。」
Roi Mulia
創設者兼 CEO, SocialKit
SocialKit

アプリを成長させるために必要なすべてがCapacitor SDKに含まれています

Paywall A/B testing

アプリのリリースなしでサブスクリプション収益を増加

ペイウォールを管理、ターゲティング、ローカライズ、パーソナライズをブラウザ上で実現。
アプリ収益を増加

払い戻し率を40%削減

払い戻しによる収益損失を防止 — AdaptyはAppleにユーザー行動データを自動送信し、リクエストを削減。
Refund Saverを設定
Refund Rate
App Monetization Strategies

いつでも購読データを把握

トライアルから払い戻しまで、即利用可能なリアルタイム購読BIでアプリ内経済を可視化。
購読BIを見る

ノーコード ペイウォールビルダー

iOS、Android、React Native、Flutter、FlutterFlow、KMP、Capacitor用の美しいネイティブペイウォールを開発チームなしで作成。
数分でペイウォールを作成
No Code Paywall Builder

使いやすさとカスタマーサービスで信頼されています

500件以上のレビューに基づいています
G2 Award: Leader (EMEA), winter 2025
G2 Award: Leader (EMEA), winter 2025
G2 Award: Leader (EMEA), winter 2025
G2 Award: Leader (EMEA), winter 2025
G2 Award: Leader (EMEA), winter 2025

AdaptyはCapacitorだけでなく他のプラットフォームにも対応