ガイド
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');
}
}
全体リファレンス
- GitHub: https://github.com/Cap-go/capacitor-android-inline-install/
- ドキュメント: /docs/plugins/android-inline-install/