wip
This commit is contained in:
parent
538bba080f
commit
979f91bd34
5 changed files with 138 additions and 35 deletions
|
|
@ -17,7 +17,7 @@ export async function initializeSw() {
|
|||
});
|
||||
// SEE: https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe#Parameters
|
||||
registration.pushManager.subscribe({
|
||||
userVisibleOnly: true,
|
||||
userVisibleOnly: false,
|
||||
applicationServerKey: urlBase64ToUint8Array(instance.swPublickey)
|
||||
}).then(subscription => {
|
||||
function encode(buffer: ArrayBuffer | null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue