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

Android Inline Install

アプリの更新を直接アプリ内でインストールすることで、Play Store から外に出る必要がなくなる

Capgoで__CAPGO_KEEP_0__を表示

ガイド

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

Download the Capgo app, then scan the QR code.

Android インライン インストール プラグイン QR code

@capgo/capacitor-android-inline-install を使用します。

Google Play 内アプリ インストール フローをトリガーする Android インライン インストール プラグイン。

インストール

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');
  }
}

フル リファレンス

@capgo/capacitor-android-inline-installを使用し続ける

Capacitorを使用している場合 @capgo/capacitor-android-inline-installを使用 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-android-inline-installと接続する @capgo/capacitor-android-inline-installの実装詳細 for the implementation detail in @capgo/capacitor-android-inline-install, Getting Startedの実装詳細 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-in-app-reviewの実装詳細 @capgo/capacitor-in-app-reviewを使用する for the implementation detail in @capgo/capacitor-in-app-review, @capgo/capacitor-in-app-review for the native capability in Using @capgo/capacitor-in-app-review, and @capgo/capacitor-native-market for the implementation detail in @capgo/capacitor-native-market.