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

Android Inline Install

__CAPGO_KEEP_0__でアプリの更新を直接インストールできます。Play Storeを離れずに済みます。

ガイド

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

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

フル リファレンス

Using @capgo/capacitor-android-inline-install

このプラグインを使用している場合 Using @capgo/capacitor-android-inline-install to plan store approval and distribution, connect it with capgo/capacitorをストアの承認と配布に接続する for the implementation detail in capgo/capacitor-android-inline-install, Getting Started for the implementation detail in Getting Started, capgo/capacitor-in-app-review for the implementation detail in capgo/capacitor-in-app-review, Using 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.