Skip to content

πŸ”Ή notifications

πŸ”” Set up Capgo native notifications in your Capacitor app.

Terminal window
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.

Example:

Terminal window
npx @capgo/cli@latest notifications setup com.example.app

Options:

ParamTypeDescription
β€”server-urlstringCapgo API server URL
β€”filestringHelper file to create (default: src/capgo-notifications.ts)
β€”forcebooleanOverwrite the helper file if it already exists
β€”no-installbooleanSkip installing the notifications package
β€”no-syncbooleanSkip Capacitor sync