Why I am unable to register service worker in my Firebase Vanilla JS app?
Dimitrios Desyllas

Dimitrios Desyllas @pcmagas

About: Greedings I am Dimitrios Desyllas aka pc_magas. I am a php software engineer. I am interested in privacy enhancing technologies, cryptography and reverse engineering.

Location:
Acharnes, Greece
Joined:
Aug 29, 2019

Why I am unable to register service worker in my Firebase Vanilla JS app?

Publish Date: May 14 '24
1 0

I am attempting to make a simple fcm listener as described upon:

https://stackoverflow.com/q/78477738/4706711

But I get the error:

Service worker registration failed, error: TypeError: ServiceWorker script at https://172.161.10.2:1234/firebase-messaging-sw.js?1715685024290 for scope https://172.161.10.2:1234/ threw an exception during script evaluation.
Enter fullscreen mode Exit fullscreen mode

I attempt to fix it but I have no idea how to debug this error. Thus I need your help for that.

Comments 0 total

    Add comment