pusher / docs

The all new Pusher docs, powered by @11ty and @vercel
https://pusher.com/docs
8 stars 15 forks source link

Pusher Beams - Failed to register Service Worker for users on Chrome - Windows 10 #323

Open deeshinde opened 6 months ago

deeshinde commented 6 months ago

Facing issues with Pusher Beams Library. This is being seen for few users on Chrome - Windows machine.

error: TypeError Failed to register a ServiceWorker for scope ('Our URL') with script ('URL/service-worker.js?pusherBeamsWebSDKVersion=2.0.0-beta.2'): ServiceWorker script evaluation failed

benw-pusher commented 6 months ago

Can you share the code in use, including the service worker file?

deeshinde commented 6 months ago

In service worker file , I have the following code -

importScripts("https://js.pusher.com/beams/service-worker.js");