• Hello, first of all, thank you for your great plugin. After several hours of unsuccessful research I look to you in hope that you can help me.
    I configure firebase as indicated in the resources of your site but I receive a service worker error under chrome and firefox. Here is the error code obtained under chrome:

    A bad HTTP response code (404) was received when fetching the script.
    pwa-push-notification.js:39 An error occurred while retrieving token.  {code: "messaging/failed-serviceworker-registration", message: "Messaging: We are unable to register the default s…t. (messaging/failed-serviceworker-registration).", browserErrorMessage: "Failed to register a ServiceWorker: A bad HTTP res…code (404) was received when fetching the script.", stack: "FirebaseError: Messaging: We are unable to registe…om/firebasejs/5.5.4/firebase-messaging.js:1:34105"}

    I am at your disposal if you need more detail. Thanking you in advance for the help you will give me.

    ps: i am french and very bad english running so i use google translate, apologies if my post is hard to understand.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jean-Baptiste

    (@jbc66)

    I resolved the 404 error by creating empty pwa-register-sw.js at the root of the site, there is no more error in the console but I do not receive the notifications despite having authorized
    What should I do?

    Emtpy pwa-register-sw.js wouldn’t do the whole job, we would need the right files. Usually the process is automatic but yours seem to have problems.

    We are improving this method in the future updates but for now, you can report this as a bug on https://github.com/ahmedkaludi/pwa-for-wp/issues

    our development team works closely on the bugs and helps you resolve them with updates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Firebase bad HTTP response’ is closed to new replies.