fix: remove requireInteraction, bump vibrate for Android

requireInteraction can suppress heads-up delivery on some Android
versions when screen is off. Removed it so the OS can auto-dismiss
after showing the notification.
This commit is contained in:
2026-07-02 15:36:51 -04:00
parent d1022d7c2a
commit 53f8c6b2ef
+2 -2
View File
@@ -1,6 +1,6 @@
// Dumpster PWA Service Worker // Dumpster PWA Service Worker
// Bump CACHE_VERSION on each deploy to force re-cache of hashed assets. // Bump CACHE_VERSION on each deploy to force re-cache of hashed assets.
const CACHE_VERSION = 'dumpster-v5'; const CACHE_VERSION = 'dumpster-v6';
const OFFLINE_URL = '/offline.html'; const OFFLINE_URL = '/offline.html';
// Assets to pre-cache on install (shell files) // Assets to pre-cache on install (shell files)
@@ -88,7 +88,7 @@ self.addEventListener('push', (event) => {
body: data.body, body: data.body,
icon: '/icons/icon-192.png', icon: '/icons/icon-192.png',
badge: '/icons/icon-192.png', badge: '/icons/icon-192.png',
vibrate: [100, 50, 100], vibrate: [200, 100, 200],
tag: data.tag, tag: data.tag,
renotify: true, renotify: true,
data: { url: data.url }, data: { url: data.url },