가이드
Android Inline Install에 대한 튜토리얼
Using @capgo/capacitor-android-inline-install
Google Play 내 앱 설치 흐름을 트리거하는 Android Inline Install 플러그인
설치
bun add @capgo/capacitor-android-inline-install
bunx cap sync
이 플러그인이 제공하는 것
startInlineInstall- Google Play overlay를 사용하여 내 앱 설치 흐름을 시작합니다.
예시 사용법
startInlineInstall
Google Play overlay를 사용하여 내 앱 설치 흐름을 시작합니다.
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/