Anleitung
Android Inline Install in Capacitor nutzen
Verwendung von @capgo/capacitor-android-inline-install
Android Inline Install Plugin zum Auslösen von Google Play In-App-Install-Flows.
Installieren
bun add @capgo/capacitor-android-inline-install
bunx cap sync
bunx cap sync kopiert den nativen code des Plugins in deine nativen Projekte. Nach jedem Plugin-Upgrade erneut ausführen.
Importieren
import { AndroidInlineInstall } from '@capgo/capacitor-android-inline-install';
API auf einen Blick
| Methode | Beschreibung |
|---|---|
startInlineInstall |
Starte einen Inline-Install-Flow über das Google Play Overlay. |
Beispiele
startInlineInstall()
Starte einen Inline-Install-Flow über das 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');
}
}
Vollständige Referenz
Weiter mit der Verwendung von @capgo/capacitor-android-inline-install
Wenn du es nutzt Verwendung von @capgo/capacitor-android-inline-install um Store-Zulassung und Distribution zu planen, verknüpfen Sie es mit @capgo/capacitor-android-inline-install für die Implementierungsdetails in @capgo/capacitor-android-inline-install, Erste Schritte für die Implementierungsdetails in Erste Schritte, @capgo/capacitor-in-app-review für die Implementierungsdetails in @capgo/capacitor-in-app-review, @capgo/capacitor-in-app-review nutzen für die native Funktion bei der Nutzung von @capgo/capacitor-in-app-review, und @capgo/capacitor-native-market für die Implementierungsdetails in @capgo/capacitor-native-market.