🔹 Benachrichtigungen
__CAPGO_KEEP_0__
🔔 Set up Capgo native notifications in your Capacitor app.
⚙️ Setup
Einstellungnpx @capgo/cli@latest notifications setupInstall 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.
npx @capgo/cli@latest notifications setup com.example.appIn den Zwischenablage kopieren
| Optionen: | Parametername (Param) ist ein String. | Beschreibung |
|---|---|---|
| —server-url | string | —Capgo API Server-URL |
| —datei | string | Hilfsdatei zum Erstellen (Standard: src/capgo-notifications.ts) |
| —zwingend | boolean | Überschreiben Sie die Hilfsdatei, wenn sie bereits existiert |
| —keine-installation | boolean | Installation der Benachrichtigungs-Paket vermeiden |
| —keine-synchronisierung | boolean | Vermeiden Sie die Capacitor-Synchronisierung |