Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

WebKit 9 min read Announcement mediumAdept

Meet Declarative Web Push

Declarative Web Push lets sites subscribe via window.pushManager and send a standardized JSON payload (keyed by "web_push": 8030 with a required title and navigate URL) that the browser displays as a notification without any service worker JavaScript. An installed service worker can optionally replace the proposed notification, and the declarative payload serves as a fallback if it fails, so WebKit no longer revokes subscriptions for missed notifications. Subscriptions also survive ITP deleting service worker registrations. Rewriting existing service worker PushEvent handlers to render the same JSON keeps messages backwards compatible with browsers that lack support. It is available in iOS/iPadOS 18.4 and the macOS 15.5 beta.

Assumes: Service workersWeb Push API basics

Related posts

  • WebKit Features in Safari 18.5

    WebKit easyNovice

    Safari 18.5 is a modest follow-up to 18.4, headlined by Declarative Web Push arriving on macOS: push notifications delivered as a standardized JSON payload without requiring Service Workers, which simplifies implementation, saves battery, and removes the penalties for undisplayed notifications. The rest is bug fixes, including a WebSocket-in-WebWorker freeze, a CSS grid min-content sizing overflow, a Lockdown Mode image-format restriction, Service Worker download interruptions, and Web Extension permission handling.

  • Meet Web Push

    WebKit easyNovice

    Safari 16 on macOS Ventura supports Web Push through the W3C Push API, Notifications API and Service Workers, with iOS and iPadOS support planned for 2023. Standards-compliant code works without joining the Apple Developer Program. Sites should replace browser sniffing with feature detection and allow push endpoints on any push.apple.com subdomain. Subscriptions require a user gesture and userVisibleOnly=true, and sites that fail to show a notification for each push lose their subscription. A new webpushd LaunchAgent bridges subscriptions to the Apple Push Notification service and wakes the right app to deliver messages to service workers, so pushes arrive even when Safari isn't running.

  • Web Push for Web Apps on iOS and iPadOS

    WebKit mediumAdept

    iOS and iPadOS 16.4 beta 1 adds standards-based Web Push for Home Screen web apps, using the Push API, Notifications API and Service Workers over Apple Push Notification service, with no Apple Developer Program membership required (allow *.push.apple.com). Permission must be requested in response to direct user interaction, and notifications integrate with Focus, which syncs across devices via the newly supported manifest `id` combined with the user-chosen app name. The release also adds the Badging API, lets third-party browsers offer Add to Home Screen through UIActivityViewController with a WKWebView, opens Home Screen bookmarks in the default browser, and generates monogram fallback icons. Sites already using feature detection for Web Push on Safari 16.1 for macOS should work unchanged.

  • WebKit Features in Safari 16.1

    WebKit mediumAdept

    Safari 16.1 brings Web Push to macOS Ventura using the standard Push API, Notifications API and Service Workers, delivered via Apple Push Notification service. Sites that already follow best practices work without an Apple Developer membership, but they need feature detection rather than browser sniffing, and servers must allow push.apple.com subdomains. The release extends passkeys to all Safari 16 platforms, with advice to support cross-device sign-in and conditional mediation for AutoFill. It also adds animated AVIF, Scroll to Text Fragment and window capture via getDisplayMedia, along with CSS, forms and accessibility fixes that bring its Interop 2022 score to 93.3%.

  • WebKit Features in Safari 18.4

    WebKit mediumAdept

    Safari 18.4 ships 84 new web platform features, 184 resolved issues and 13 deprecations. Highlights include Declarative Web Push for Home Screen web apps on iOS/iPadOS, which delivers notifications without a Service Worker, and the CSS shape() function for responsive clip paths using CSS units. Other additions include ::details-content styling and animation for <details>, sideways writing modes, text-autospace for CJK spacing, view-transition-name: match-element, and alpha/Display P3 support in the color input. Web Inspector gains device viewport presets in Responsive Design Mode, per-app JSContext auto-inspection, and source map ignoreList support.

The quest for software engineering knowledge.

Look:
Layout: