attempt at fixing the extra notification again
This commit is contained in:
parent
b394392d0d
commit
99d04bed2b
|
@ -28,7 +28,7 @@ function subscribePush (registration, isEnabled, vapidPublicKey) {
|
||||||
if (!vapidPublicKey) return Promise.reject(new Error('VAPID public key is not found'))
|
if (!vapidPublicKey) return Promise.reject(new Error('VAPID public key is not found'))
|
||||||
|
|
||||||
const subscribeOptions = {
|
const subscribeOptions = {
|
||||||
userVisibleOnly: true,
|
userVisibleOnly: false,
|
||||||
applicationServerKey: urlBase64ToUint8Array(vapidPublicKey)
|
applicationServerKey: urlBase64ToUint8Array(vapidPublicKey)
|
||||||
}
|
}
|
||||||
return registration.pushManager.subscribe(subscribeOptions)
|
return registration.pushManager.subscribe(subscribeOptions)
|
||||||
|
|
Loading…
Reference in New Issue