跳过内容

🔹 通知

🔔 在您的 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

复制到剪贴板

选项:参数:描述
—服务器地址stringCapgo API 服务器地址
—文件string创建帮助文件(默认:src/capgo-notifications.ts)
—强制boolean覆盖已存在的帮助文件
—跳过安装boolean跳过__CAPGO_KEEP_0__同步
编辑页面booleanSkip Capacitor sync