Zum Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-android-inline-install
Tutorial
von github.com/Cap-go

Android Inline Install

Installieren Sie App-Updates direkt innerhalb der App ohne das Verlassen des Play Stores

Richtlinie

Tutorial zu Android Inline Install

Mit @capgo/capacitor-android-inline-install

Plugin für Android Inline Install zum Auslösen von Google Play in-app-Install-Flüssen.

Installieren

bun add @capgo/capacitor-android-inline-install
bunx cap sync

Was diese Erweiterung bereitstellt

  • startInlineInstall - Starten Sie einen Inline-Installationsfluss mithilfe des Google Play Overlay.

Beispiel zur Verwendung

startInlineInstall

Starten Sie einen Inline-Installationsfluss mithilfe des 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

Weitermachen von Using @capgo/capacitor-android-inline-install

Wenn Sie Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-android-inline-install verwenden Using @capgo/capacitor-android-inline-install um den Store-Bewilligung und -Verteilung zu planen, verbinden Sie es mit @capgo/capacitor-android-Inline-Installation für die Implementierungsdetails in @capgo/capacitor-android-Inline-Installation, Einstieg für die Implementierungsdetails in Einstieg, @capgo/capacitor-in-app-Bewertung für die Implementierungsdetails in @capgo/capacitor-in-app-Bewertung, Mit @capgo/capacitor-in-app-Bewertung für die native Fähigkeit in Mit @capgo/capacitor-in-app-Bewertung, und @capgo/capacitor-native-Markt für die Implementierungsdetails in @capgo/capacitor-native-Markt.