Dear support team,
I have an issue with the push notification plugin that’s not working properly and giving an error in console : “Error during service worker registration: DOMException”
The configuration of the firebase was done correctly.
WPLMS push notification plugin version is 1.1
Notification allowed from browser, BuddyPress and Touch Points settings.
The configuration on the live tab was also done according to steps in the plugin instructions “knowledge base” (and also the character “\” added at the end of each line in private key was removed), then the database was generated correctly and rules were applied as should in database.
The issue comes when we reload the live page (backend and on every front-end page) there are 2 issues that appear in the console https://prnt.sc/om8k1r
To see the service that couldn’t be registered (function “registerValidSW(swUrl)” ) I added a console.log in the wplms-pn-admin.js to retrun the value of “swUrl” and this is what was returned in console (with a label “test:”) https://prnt.sc/om8kyp
I tried to send a notification from a course admin in front-end (option activated from settings of push notification) and the loading class of the button is there and the script is not executed fully until the position where the loading class is removed, here’s the screen shot of elements and console :
Can you please provide any help to ensure this is working properly ?
Thank you in advance.This reply has been marked as private.
Thank you for your answer.
To make sure this redirect is coming from somewhere else in the site or from the push notification plugin, I deactivated the plugin and the redirect error disappeared.
So the redirection itself is coming from the push notification plugin apparently.
- This reply was modified 1 year, 5 months ago by hanine.
yes the redirect error is coming from push notifications plugin as this error indicates that there is some kind of redirect implemented on the url : https://acces.goodbyecomfort.zone/firebase-messaging-sw.js
or on the main domain : https://acces.goodbyecomfort.zone
which is why the issue is appearing .
Yes I see that the file is accessible now from new host .
But the error message it still showing up ..
I guess the issue is related to site lock .We need your admin credentials in private reply to check this further .
hi,we did replicated the issue at your end .
We are fixing this issue soon on top priority and will release update of the plugin .
We have tried some solutions but they did not work .We will be researching on it again to try fixing this issue .
Thanks for all your patience .
Ok thank you for keeping us updated. Hope to find an issue very soon on this. Thanks
Nope I dont think that might help .It actually related to firebase itself .
They have changed something in their core which is affecting .
We are researching on this but we suspect that the issue is actually related to http to https ,we are also using cloudflare for https service.
The topic ‘push notification NOK, console error "Error during service worker registration"’ is closed to new replies.