跳过内容

🔹 通知

🔔 在您的 Capgo 应用中设置 Capacitor 原生通知。

⚙️ Setup

配置
配置
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.

安装 __CAPGO_KEEP_0__ 通知插件,添加 __CAPGO_KEEP_1__ 配置,创建一个辅助文件,并运行 __CAPGO_KEEP_2__ 同步。 在发送生产通知之前,在 __CAPGO_KEEP_3__ 应用通知选项卡中配置 Android 和 iOS 推送凭证。

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

复制到剪贴板

选项:参数:描述
—server-urlstringCapgo API 服务器 URL
—文件string帮助文件创建助手(默认:src/capgo-notifications.ts)
—强制boolean覆盖已存在的帮助文件
—不安装boolean跳过通知包的安装
—不同步boolean跳过Capacitor同步