Zum Inhalt springen

🔹 Benachrichtigungen

🔔 Set up Capgo native notifications in your Capacitor app.

⚙️ Setup

Einstellung
Sektion mit dem Titel “ ⚙️ Einstellung”
npx @capgo/cli@latest notifications setup

Install the Capgo notifications plugin, add Capacitor config, create a helper file, and run Capacitor sync. Before sending production notifications, configure Android and iOS push credentials in the Capgo app Notifications tab.

Installieren Sie das __CAPGO_KEEP_0__-Benachrichtigungs-Plugin, fügen Sie __CAPGO_KEEP_1__-Konfiguration hinzu, erstellen Sie eine Hilfsdatei und führen Sie __CAPGO_KEEP_2__-Synchronisierung durch. Bevor Sie Produktionsbenachrichtigungen senden, konfigurieren Sie Android- und iOS-Push-Zertifikate in der __CAPGO_KEEP_3__-App unter Benachrichtigungen.

Beispiel:
npx @capgo/cli@latest notifications setup com.example.app

In den Zwischenablage kopieren

Optionen:Parametername (Param) ist ein String.Beschreibung
—server-urlstring—Capgo API Server-URL
—dateistringHilfsdatei zum Erstellen (Standard: src/capgo-notifications.ts)
—zwingendbooleanÜberschreiben Sie die Hilfsdatei, wenn sie bereits existiert
—keine-installationbooleanInstallation der Benachrichtigungs-Paket vermeiden
—keine-synchronisierungbooleanVermeiden Sie die Capacitor-Synchronisierung