From 222ca49355c2cd3c0a75a8f08a2fd3e898787ac4 Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Wed, 19 Aug 2026 15:18:59 -0600 Subject: [PATCH] Keep push notifications on screen until dismissed Without requireInteraction, the OS default auto-dismiss (a few seconds on most platforms) was closing notifications before they were reliably noticed. Browser/PWA push only -- the Desktop bridge is a separate codebase with its own native notification handling. Co-Authored-By: Claude Sonnet 5 --- frontend/src/sw.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/sw.ts b/frontend/src/sw.ts index 4fe32af..42687af 100644 --- a/frontend/src/sw.ts +++ b/frontend/src/sw.ts @@ -115,6 +115,10 @@ self.addEventListener('push', (event) => { icon: '/icons/icon-192.png', badge: '/icons/icon-192.png', data: { room_id: payload.room_id }, + // Without this, the OS default auto-dismiss (a few seconds on most + // platforms) closes it long before anyone reliably notices -- stays + // on screen until the user actually dismisses or clicks it instead. + requireInteraction: true, }), ) })