push-fcm-plugin icon indicating copy to clipboard operation
push-fcm-plugin copied to clipboard

A bad HTTP response code (404) was received when fetching the script.

Open ghost opened this issue 7 years ago • 3 comments

When i am trying to run Push.FCM() , i found the "A bad HTTP response code (404) was received when fetching the script" error for long time.Please give the solution as soon as early.

ghost avatar Aug 22 '18 11:08 ghost

Is there a stack trace of any kind? What does your full code look like?

Nickersoft avatar Aug 24 '18 22:08 Nickersoft

@BhajeeAr252 Can you please check your "firebase-messaging-sw.min.js" file path?. In my case, I have added file as "firebase-messaging-sw.js". So there was an error while fetching script which expects "firebase-messaging-sw.min.js".

@Nickersoft I think it is the solution for this error.

prakash-mallow avatar Aug 31 '18 12:08 prakash-mallow

I had the same issue

albertodarblade avatar Sep 07 '18 17:09 albertodarblade