Get the latest tech news

Declarative Web Push – WebKit


Web Push notifications are a powerful and important part of the web platform.

The code handling that event inspects the data in the push message, using it to make a call to ServiceWorkerRegistration.showNotification(...) to display the user visible notification. Most applications will find it straightforward to send the declarative standard JSON in their push messages and rewrite their service worker’s PushEvent handler to display it. This is quite similar to how Declarative Web Push notifications work on iOS after the website’s service worker JavaScript has been removed either by the user or by ITP.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of WebKit

WebKit

Photo of Declarative Web Push

Declarative Web Push

Related news:

News photo

Apple Disables WebKit's JIT in Lockdown Mode

News photo

Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout

News photo

Whatever happened to this? "New iPhone browsers on the way without WebKit; Apple prepping Safari for competition"