Viewing 1 replies (of 1 total)
  • Hello, it appears you have another plugin that is changing the reference to our service workers from:

    /wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/push/onesignal/

    to

    /modules/cc1cff0190/sdk_files/

    We recommend removing this redirect if you can.

    If you cannot remove this redirect, then you will need to add some code to your site.

    Follow this guide: https://documentation.onesignal.com/docs/onesignal-service-worker-faq#wordpress-plugin-setup—service-worker-customizations

    This is what your specific javascript code will look like in this case:

    <script>
      window.addEventListener('load', function() {
        window.OneSignal = window.OneSignal || [];
        window.OneSignal.push(function() {
          OneSignal.SERVICE_WORKER_UPDATER_PATH = "modules/cc1cff0190/sdk_files/OneSignalSDKUpdaterWorker.js";
          OneSignal.SERVICE_WORKER_PATH = "modules/cc1cff0190/sdk_files//OneSignalSDKWorker.js";
          OneSignal.SERVICE_WORKER_PARAM = { scope: "/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/" };
          delete window._oneSignalInitOptions.path
          window.OneSignal.init(window._oneSignalInitOptions);
        });
      });
    </script>

    If you are still having problem, please reach out support team using [email protected] and reference this support forum url.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘OneSignal not work to https’ is closed to new replies.