메인 콘텐츠로 바로가기
플러그인으로 돌아가기
@capgo/capacitor-android-inline-install
튜토리얼
github.com/Cap-go에서

안드로이드 인라인 설치

앱을 사용하는 동안 플레이 스토어를 떠나지 않고 앱 업데이트를 직접 설치합니다.

가이드

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

전체 참조