メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-android-inline-install
チュートリアル
github.com/Cap-go

Android Inline Install

アプリ内で直接アップデートをインストールするため、プレイストアに移動する必要がなくなる

ガイド

Android インライン インストールのチュートリアル

Using @capgo/capacitor-android-inline-install

Android インライン インストール プラグイン (Google Play のインアプリ購入フローをトリガーします)

インストール

bun add @capgo/capacitor-android-inline-install
bunx cap sync

このプラグインが公開するもの

  • startInlineInstall - Google Play オーバーレイを使用してインライン インストール フローを開始します。

使用例

startInlineInstall

Google Play オーバーレイを使用してインライン インストール フローを開始します。

import { AndroidInlineInstall } from '@capgo/capacitor-android-inline-install';

const result = await AndroidInlineInstall.startInlineInstall({
  id: 'com.example.app',
  referrer: 'my-referrer',
  overlay: true,
  fallback: true
});

if (result.started) {
  console.log('Install flow started');
  if (result.fallbackUsed) {
    console.log('Using fallback Play Store link');
  }
}

全体リファレンス