Support » Plugin: Progressive WordPress (PWA) » OneSignal integration not working

  • rafaucau

    (@rafaucau)


    After enabling this plugin, OneSignal stops working.
    An notice appears in OneSignal script tag:
    <b>Notice</b>: Undefined variable: current_plugin_url in <b>/wp-content/plugins/progressive-wp/3rdparty-support/class-onesignal.php</b> on line <b>124</b><br />

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have problem with OneSignal integration, too.

    After OneSignal plugin activation, PWA service worker stops to work. Any ideas?

    Hello,

    I have the same problem too. After enabling this plugin, OneSignal stops working.

    Idem

    Error message from console of DevTools

    [Service Worker Installation] Installing service worker
    failed SecurityError: Failed to register a ServiceWorker for scope ('https://www.laclefdevoute.fr/') with script ('https://www.laclefdevoute.fr/sdk_files/https://www.laclefdevoute.fr/?wp_service_worker=1?appId=95c543bc-81ff-4cb3-9c3f-fc49f97100b5'): The path of the provided scope ('/') is not under the max scope allowed ('/sdk_files/https://www.laclefdevoute.fr/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.
    (anonymous) @ OneSignalPageSDKES6.js?v=150801:1
    ServiceWorkerManager.js:373

    Extrait de ServiceWorkerManagner.js:373 :

    Log.error('[Service Worker Installation] Installing service worker failed ${error}');
                // Try accessing the service worker path directly to find out what the problem is and report it to OneSignal api.
                // If we are inside the popup and service worker fails to register, it's not developer's fault.
                // No need to report it to the api then.

    no one?

    Plugin Author Nico Martin

    (@nico_martin)

    Hi there

    Yes, it seems like one signal made some updates which conflict with the current implementation in progressive WordPress.
    However, I will not fix the integration because I don’t want to depend on their plugin decisions. Instead, I will implement a more sustainable solution for sending push notifications:
    https://github.com/SayHelloGmbH/progressive-wordpress/issues/57

    Kind regards,
    Nico

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘OneSignal integration not working’ is closed to new replies.