Appearance
Documentation / @kizami/notify / webPushChannel
Function: webPushChannel()
webPushChannel(
subscription,vapid,options?):NotificationChannel
Defined in: packages/notify/src/web-push.ts:264
1つの購読(= 1ブラウザ)へ送る NotificationChannel を作る。
ペイロードは {"title","body","url"} の JSON。サービスワーカー(apps/web/public/sw.js)の push ハンドラがこの3つだけを読む契約にしてある(項目を増やすときは sw.js と同時に直すこと)。