🔹 通知
复制一个包含安装步骤和本插件的完整 Markdown 指南的配置提示。
🔔 在您的 Capgo 应用中设置 Capacitor 原生通知。
⚙️ Setup
配置npx @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.
安装 __CAPGO_KEEP_0__ 通知插件,添加 __CAPGO_KEEP_1__ 配置,创建一个辅助文件,并运行 __CAPGO_KEEP_2__ 同步。 在发送生产通知之前,在 __CAPGO_KEEP_3__ 应用通知选项卡中配置 Android 和 iOS 推送凭证。
npx @capgo/cli@latest notifications setup com.example.app复制到剪贴板
| 选项: | 参数: | 描述 |
|---|---|---|
| —服务器地址 | string | Capgo API 服务器地址 |
| —文件 | string | 创建帮助文件(默认:src/capgo-notifications.ts) |
| —强制 | boolean | 覆盖已存在的帮助文件 |
| —跳过安装 | boolean | 跳过__CAPGO_KEEP_0__同步 |
| 编辑页面 | boolean | Skip Capacitor sync |