🔹 通知
インストール手順と、このプラグインの完全なMarkdownガイドを含むセットアッププロンプトをコピーします。
🔔 Capacitor アプリに Capgo のネイティブ通知をセットアップします。
⚙️ セットアップ
「⚙️ セットアップ」セクションnpx @capgo/cli@latest notifications setupCapgo notifications プラグインをインストールし、Capacitor の設定を追加して、ヘルパーファイルを作成したら Capacitor sync を実行します。 本番環境で通知を送信する前に、Capgo アプリの Notifications タブで Android と iOS のプッシュ認証情報を設定してください。
例:
npx @capgo/cli@latest notifications setup com.example.appオプション:
| パラメータ | 種類 | 説明 |
|---|---|---|
| —server-url | string | Capgo API サーバー URL |
| —file | string | 作成するヘルパーファイル (デフォルト: src/capgo-notifications.ts) |
| —force | boolean | ヘルパーファイルが既に存在する場合、上書きします |
| —no-install | boolean | notificationsパッケージのインストールをスキップします |
| —no-sync | boolean | Capacitor の同期をスキップします |