Skip to content

시작하기

터미널 창
bun add @capgo/capacitor-android-inline-install
bunx cap sync
import { AndroidInlineInstall } from '@capgo/capacitor-android-inline-install';

startInlineInstall

startInlineInstall 섹션

구글 플레이 overlay를 사용하여 인라인 설치 흐름을 시작합니다.

Inline Install은 특정 앱만 사용할 수 있습니다. 자세한 내용은: https://play.google.com/console/about/guides/premium-growth-tools/

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_KEEP_1__

__CAPGO_KEEP_2__

StartInlineInstallOptions

__CAPGO_KEEP_3__

__CAPGO_KEEP_4__

export interface StartInlineInstallOptions {
/** Package name of the app to be installed (target app). */
id: string;
/** Referrer string to pass to Play. Optional but recommended. */
referrer?: string;
/**
* Package name of your app (caller). Defaults to the current app package
* if omitted.
*/
callerId?: string;
/** Optional Custom Store Listing ID. */
csl_id?: string;
/** Whether to request the Play overlay. Defaults to true. */
overlay?: boolean;
/** If true, falls back to full Play Store deep link when overlay unavailable. Defaults to true. */
fallback?: boolean;
}

StartInlineInstallResult

__CAPGO_KEEP_5__

__CAPGO_KEEP_6__

export interface StartInlineInstallResult {
/** True when the inline install intent has been started. */
started: boolean;
/** True if a fallback deep link was used instead of inline overlay. */
fallbackUsed?: boolean;
}

__CAPGO_KEEP_7__

__CAPGO_KEEP_8__

__CAPGO_KEEP_9__ src/definitions.ts. upstream API이 변경될 때 다시 동기화 하세요.