🔹 通知
安装
🔔 在您的 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复制到剪贴板
| 选项: | 参数: | 描述 |
|---|---|---|
| —server-url | string | Capgo API 服务器 URL |
| —文件 | string | 帮助文件创建助手(默认:src/capgo-notifications.ts) |
| —强制 | boolean | 覆盖已存在的帮助文件 |
| —不安装 | boolean | 跳过通知包的安装 |
| —不同步 | boolean | 跳过Capacitor同步 |