Guide
Tutoriel sur l'installation en ligne Android
Utilisation de @capgo/capacitor-android-inline-install
Plugin d'installation en ligne Android pour déclencher les flux d'installation en application Google Play.
Installer
bun add @capgo/capacitor-android-inline-install
bunx cap sync
Ce que ce plugin expose
startInlineInstall- Déclencher un flux d'installation en ligne en utilisant l'overlay Google Play.
Exemple d'utilisation
startInlineInstall
Déclencher un flux d'installation en ligne en utilisant l'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');
}
}
Référence complète
- GitHub: https://github.com/Cap-go/capacitor-android-inline-install/
- Documentation : /docs/plugins/android-inline-install/