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:
+2
-2
@@ -1,6 +1,6 @@
|
||||
// Dumpster PWA Service Worker
|
||||
// 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';
|
||||
|
||||
// Assets to pre-cache on install (shell files)
|
||||
@@ -88,7 +88,7 @@ self.addEventListener('push', (event) => {
|
||||
body: data.body,
|
||||
icon: '/icons/icon-192.png',
|
||||
badge: '/icons/icon-192.png',
|
||||
vibrate: [100, 50, 100],
|
||||
vibrate: [200, 100, 200],
|
||||
tag: data.tag,
|
||||
renotify: true,
|
||||
data: { url: data.url },
|
||||
|
||||
Reference in New Issue
Block a user