From 99d04bed2bf96cade48c99bae8fcf154bd769998 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 13 Dec 2023 22:04:00 +0200 Subject: [PATCH] attempt at fixing the extra notification again --- src/services/sw/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sw/sw.js b/src/services/sw/sw.js index 4516c813..98dc7294 100644 --- a/src/services/sw/sw.js +++ b/src/services/sw/sw.js @@ -28,7 +28,7 @@ function subscribePush (registration, isEnabled, vapidPublicKey) { if (!vapidPublicKey) return Promise.reject(new Error('VAPID public key is not found')) const subscribeOptions = { - userVisibleOnly: true, + userVisibleOnly: false, applicationServerKey: urlBase64ToUint8Array(vapidPublicKey) } return registration.pushManager.subscribe(subscribeOptions)