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
—ファイルstringcapgo 通知用ヘルパーファイルを作成するためのファイル (デフォルト: src/capgo-notifications.ts)
—強制boolean既存のヘルパーファイルが存在する場合に上書きする
—インストールをスキップboolean通知パッケージのインストールをスキップ
__CAPGO_KEEP_0__ 同期をスキップbooleanSkip Capacitor sync