Petunjuk
Tutorial pada Android Inline Install
Menggunakan @capgo/capacitor-android-inline-install
Plugin Instal Inline Android untuk Mengaktifkan Alur Instal In-App Google Play.
Instal
bun add @capgo/capacitor-android-inline-install
bunx cap sync
Apa yang Dapat Diklik Plugin Ini
startInlineInstall- Mulai alur instal inline menggunakan overlay Google Play.
Contoh Penggunaan
startInlineInstall
Mulai alur instal inline menggunakan overlay 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');
}
}
Referensi Lengkap
- GitHub: https://github.com/Cap-go/capacitor-android-inline-install/
- Dokumen: /docs/plugins/android-inline-install/