Skip to content

🔹通知

🔔 Capgoのネイティブ通知をCapacitorアプリにセットアップしてください。

⚙️ 設定

「設定」
ターミナル画面
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.

例:

ターミナル画面
npx @capgo/cli@latest notifications setup com.example.app

オプション:

パラメータータイプ説明
—サーバーURLstringCapgo API サーバーURL
—ファイルstring通知用ヘルパーファイルの作成に使用するファイル (デフォルト: src/capgo-notifications.ts)
—強制boolean既存のヘルパーファイルを上書きします
—インストールをスキップboolean通知パッケージのインストールをスキップします
—同期をスキップbooleanCapacitor 同期をスキップします