Passer à la navigation

🔹 notifications

🔔 Configurez les notifications natives de Capgo dans votre application Capacitor.

⚙️ Configuration

context
Section titled “ ⚙️ Configuration”
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.

Installez le plugin de notifications __CAPGO_KEEP_0__, ajoutez la configuration __CAPGO_KEEP_1__, créez un fichier d'aide et exécutez la synchronisation __CAPGO_KEEP_2__. Avant d'envoyer des notifications de production, configurez les clés de push Android et iOS dans l'onglet Notifications de l'application __CAPGO_KEEP_3__.

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

Copier dans le presse-papier

Options :Paramètre : « Type »Description
—server-urlstring—Capgo API URL du serveur
—fichierstringFichier d'aide à créer (par défaut : src/capgo-notifications.ts)
—forcerbooleanRemplacer le fichier d'aide si celui-ci existe déjà
—ne pas installerbooleanIgnorer l'installation du package de notifications
—ne pas synchroniserbooleanIgnorer la synchronisation Capacitor