メインコンテンツへスキップ

🔹 通知

🔔 Capacitor アプリに Capgo のネイティブ通知をセットアップします。

ターミナル
npx @capgo/cli@latest notifications setup

Capgo notifications プラグインをインストールし、Capacitor の設定を追加して、ヘルパーファイルを作成したら Capacitor sync を実行します。 本番環境で通知を送信する前に、Capgo アプリの Notifications タブで Android と iOS のプッシュ認証情報を設定してください。

例:

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

オプション:

パラメータ種類説明
—server-urlstringCapgo API サーバー URL
—filestring作成するヘルパーファイル (デフォルト: src/capgo-notifications.ts)
—forcebooleanヘルパーファイルが既に存在する場合、上書きします
—no-installbooleannotificationsパッケージのインストールをスキップします
—no-syncbooleanCapacitor の同期をスキップします