Skip to content

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

WebKit 7 min read Announcement mediumAdept

Web Push for Web Apps on iOS and iPadOS

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.

Assumes: Service WorkersWeb App Manifest

Related posts

  • Badging for Home Screen Web Apps

    WebKit mediumAdept

    WebKit on iOS and iPadOS 16.4 supports the W3C Badging API, but only for web apps added to the Home Screen. It is not exposed in Safari or WKWebView. Badges appear only after the user grants notification permission, and users can still hide badges in Settings without the app being told. The post shows feature detection, requesting and checking notification permission, `navigator.setAppBadge()` and `clearAppBadge()`, and updating badges from a Service Worker on push events. A badge update alone does not satisfy the user-visible notification requirement, and calls from cross-origin frames are ignored.

  • 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.

  • 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%.

  • News from WWDC22: WebKit Features in Safari 16 Beta

    WebKit easyNovice

    Safari 16 beta adds Container Queries (size queries plus cqw/cqh/cqi/cqb/cqmin/cqmax units), CSS Subgrid, Web Push on macOS Ventura via the standard Push API, Notifications API and Service Worker backed by Apple Push Notification service, and Shared Workers. Web Inspector gains a Flexbox Inspector and support for developer-tools extensions built on the same JavaScript APIs as other browsers. Other additions include CSS Offset Path, animatable grids, overscroll-behavior, and a re-architected macOS accessibility layer that serves twice as many requests in 25% less time on complex pages. Existing Web Push implementations work unchanged as long as sites use feature detection and allow push.apple.com subdomains.

  • Meet Declarative Web Push

    WebKit mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: