• Resolved Murali Kumar

    (@amuralikumar)


    I have implemented PWA in a website that already has onesignal push notification integration via plugin. Now, i am getting the following error on subscription.

    Please help me integrate Onesignal with PWA in the site installed. Currently Onesignal doesnt need page control as the issue was earlier. So, it should be working fine. but its throwing error.

    An unknown error occurred when fetching the script.
    ServiceWorkerManager.js:363 [Service Worker Installation] Installing service worker failed TypeError: Failed to register a ServiceWorker for scope (‘https:// www. mywebsite.com/’) with script (‘https:// www. mywebsite.com/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js.php?appId=18a7f455-9427-411f-8866-112a9c5f4ceb’): ServiceWorker script evaluation failed

    Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope (‘https:// www. mywebsite.com/’) with script (‘https:// www. mywebsite.com/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js.php?appId=18a7f455-9427-411f-8866-112a9c5f4ceb’): ServiceWorker script evaluation failed

    • This topic was modified 3 years, 5 months ago by Murali Kumar.
  • The topic ‘How to integrate Onesignal with PWA installed ?’ is closed to new replies.