Safari macOS 15.5 will improve the delivery of web notifications. Among other things, notification delivery will now be more efficient and battery life will be extended.
You might be interested in
In the browser Safari 18.5, which is part of macOS 15.5, added Apple Declarative Web Push, an updated method for delivering web push notifications even when a web page is not open. Declarative Web Push allows developers to display notifications without the need for a service worker, which saves battery life for Web Push notifications.
Web notifications in macOS 15.5 save battery
The declarative Web Push delivery method is more energy efficient and is also more private and easier for developers to implement. It does not rely on JavaScript, instead, uses a standardized JSON format that allows browsers to directly display notifications without additional code. Declarative Web Push is not subject to the same performance-breaking bugs and network issues as standard web push, nor will it be disabled by anti-tracking features on websites that the user has not visited in a while.
Apple states that declarative web push is backward compatible with browsers that have not yet added support. End users do not need to do anything to see declarative web push notifications, as this is a feature that developers implement behind the scenes. What is quite interesting is that Apple previously added support for declarative web submission on iPhone and iPad in updates iOS 18.4 and iPadOS 18.4. More information is available on the WebKit blog Apple. Safari 18.5 is included with macOS 15.5, but the browser update is also available for Macs still running macOS Sonoma and macOS Ventura.