Hi, i'm trying to setup push notifications in a sveltekit app. When I active push with client.push.activate() I get this error:
Error: Failed to register service worker
at getW3CPushDeviceDetails (pushactivation.ts:10:21)Caused by: DOMException: Registration failed - push service error
Any idea what I could be doing wrong?
This is my service-worker.js file:
self.addEventListener('push', function (event) {
console.log('push', event);
} );
Hi, i'm trying to setup push notifications in a sveltekit app. When I active push with
client.push.activate()
I get this error:Any idea what I could be doing wrong? This is my service-worker.js file:
code:
This is where it fails: https://github.com/ably/ably-js/blob/18a255948c38d1e60715c8f5d6173369b57cb8d6/src/plugins/push/getW3CDeviceDetails.ts#L59C5-L62C8
┆Issue is synchronized with this Jira Task by Unito