Service Worker Registration Error

We’re trying to use your WordPress Push Notification plugin and ran into an error:

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

Here are the steps we did:

1 Installed and activated your plugin

2 Opened an account and registered the site

3 Entered the REST API key

4 Got the error above on the frontend of our site

Any help will be appreciated.

Thank you.

Hi there! Are you using some type of a security plugin? It seems, looking at your screenshot, that something is prohibiting access to the service worker file webpushr-sw.js.php. We normally see this with security plugins that have PHP hardening feature turned on.

I got it working using the manual install method.
Allowing access to PHP files from external sources is not a good idea.
Thank you for your help.

Can you please tell us which security plugin you are using? Sometimes these plugins let you add an exception to PHP files. We can try out the plugin on our end and let you know if your particular security plugin offers an exception feature.

Our latest plugin (v4.10) will no longer show you this error as it automatically adjusts if php file access is blocked.