Nickersoft / push-fcm-plugin

Official Firebase Cloud Messaging plugin for Push.js v1.0 :fire:
https://pushjs.org
42 stars 13 forks source link

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

Open ghost opened 5 years ago

ghost commented 5 years ago

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.

Nickersoft commented 5 years ago

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

prakash-subramani commented 5 years ago

@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.

albertodarblade commented 5 years ago

I had the same issue