Push API Test (Service Worker)

Push API と Notification API を試す。

The Push API Guide をやってみる。

デスクトップ通知許可状況:

( default / granted / denied )

ブラウザの「通知」設定を「確認(デフォルト)」にしてからボタンを押すと分かりやすいです。

以下のボタンを押すと、デスクトップ通知が表示されます。

ServiceWorkerContainer オブジェクトのプロパティー・メソッド
プロパティー or メソッド 値
controller
getRegistration()
getRegistrations()
ServiceWorkerRegistration オブジェクトのプロパティー・メソッド
プロパティー or メソッド 値
scope
installing
waiting
active
navigationPreload
getNotifications()
PushSubscription オブジェクトのプロパティー・メソッド
プロパティー or メソッド 値
endpoint
(ブラウザベンダが用意したプッシュサーバー上のURL)
expirationTime
getKey('p256dh')
getKey('auth')
toJSON()

メモ

参考