From b32c7682f0a84619a6d1845516a6a1829fa0c59b Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 27 Feb 2026 16:41:37 -0500 Subject: Move failed push handling inside of the web push publisher. I want push publication to be "fire and forget," and ultimately also for it to be asynchronous and retriable. To facilitate that, the caller needs to be insulated from the final outcome of publishing a push message. I've opted to preserve the `Failure` possibility, but any delivery issues are now handled inside the publisher. --- ui/service-worker.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/service-worker.js') diff --git a/ui/service-worker.js b/ui/service-worker.js index 81d0752..8a889ec 100644 --- a/ui/service-worker.js +++ b/ui/service-worker.js @@ -27,6 +27,7 @@ function countUnreadChannels() { self.addEventListener('push', (event) => { const data = event.data.json(); + if (data.type === 'heartbeat') { // Let's show a notification right away so Safari doesn't tell Apple to be // mad at us: -- cgit v1.2.3