push notification NOK, console error "Error during service worker registration"

Home Forums WPLMS Live WPLMS Push Notifications push notification NOK, console error "Error during service worker registration"

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #220483
    hanine
    Spectator
    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 : https://prnt.sc/om8lvp https://prnt.sc/om8m67   Can you please provide any help to ensure this is working properly ? Thank you in advance.
    #220746
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #220757
    hanine
    Spectator
    Hi Alex, 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. https://prnt.sc/on1sxf
    #220761
    hanine
    Spectator
    This reply has been marked as private.
    #221028
    hanine
    Spectator
    This reply has been marked as private.
    #221150
    Anshuman Sahu
    Keymaster
    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 .  
    #221172
    hanine
    Spectator
    This reply has been marked as private.
    #221173
    hanine
    Spectator
    This reply has been marked as private.
    #221461
    Anshuman Sahu
    Keymaster
    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 .
    #221593
    hanine
    Spectator
    This reply has been marked as private.
    #221822
    Anshuman Sahu
    Keymaster
    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 .
    #221827
    hanine
    Spectator
    Ok thanks.
    #222235
    Anshuman Sahu
    Keymaster
    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 .
    #222347
    hanine
    Spectator
    Ok thank you for keeping us updated. Hope to find an issue very soon on this. Thanks
    #222629
    Anshuman Sahu
    Keymaster
    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.
Viewing 15 posts - 1 through 15 (of 25 total)
  • The topic ‘push notification NOK, console error "Error during service worker registration"’ is closed to new replies.