Re:New WebKit features in Safari 15.4
by kitsunesoba on Monday March 14, 2022 @09:09PM
(#30680650)
Doesn’t supporting web push notifications involve having worker processes running in the background all the time to poll or keep a socket open for updates? I could see that dragging down battery life if one has notifications for more than just a small handful of PWAs enabled.
[ Parent
| on HN ]
Native apps already do this...
Disagreed; they don't. They delegate messaging to the Apple Push Notification service which is a single process that maintains a persistent connection (and receives messages on behalf of apps). Apps only get woken up when a notification actually arrives.