• Resolved ionious

    (@ionious)


    Hi I noticed that when “PWA for WP” plugin is active along with Webpushr plugin the push notifications don’t work properly. Welcome push doesn’t go through and manual requests are a hit or miss. When they arrive it’s garbled data. I’ve disabled all push notification settings in PWA for WP.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author webpushr

    (@webpushr)

    Thank you for trying Webpushr out. It is probably due to conflict with the service worker file.

    Only one service worker (our service worker file is webpushr-sw.js.php located at ~/wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php) can be registered with the top most (site root) service worker scope. Please import any other service worker files into our service worker to remove this conflict.

    Here’s how you can do that:

    Currently the content of webpushr-sw.js.php (located at ~/wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php) contain the following single line:

    importScripts(‘https://cdn.webpushr.com/sw-server.min.js’);

    Please modify the content of webpushr-sw.js.php to import your other service worker files like this:

    importScripts(‘https://cdn.webpushr.com/sw-server.min.js’);
    importScripts(‘https://example.com/additional-service-worker.js’);

    • This reply was modified 4 years, 9 months ago by webpushr.
    Thread Starter ionious

    (@ionious)

    Sorry for the late reply I’ve been busy with other projects.

    Your suggestion was successful in activating the webpushr service worker, accepting notifications and registering as a user. The PWA service worker worked along side as well.

    However push notifications are never received on devices. This includes welcome notifications and any campaigns sent. But interestingly enough they are still indicated to have been sent successfully.

    Any suggestions? Hopefully PWA will collaborate with you.

    Plugin Author webpushr

    (@webpushr)

    Our latest version (v4.9) is now compatible with PWA & SuperPWA Plugins

    Thread Starter ionious

    (@ionious)

    Thanks for the update but nothing seems to have changed.

    What works:
    PWA deactivated Webpushr activated (opt-in prompt, welcome push, manual push etc)

    What kind of works:
    PWA activated Webpushr activated (opt-in prompt only works. pushes never show up).

    Any suggestions? Perhaps certain settings in PWA plugin itself?

    Plugin Author webpushr

    (@webpushr)

    Can you please clear your browsing history, re-subscribe and check one more time? If it still does not work, please tell us which PWA plugin you are using.

    Thread Starter ionious

    (@ionious)

    Done. No joy unfortunately.

    This is the plugin:
    PWA for WP & AMP
    https://en-gb.www.ads-software.com/plugins/pwa-for-wp/

    It’s got support for Onesignal

    • This reply was modified 4 years, 5 months ago by ionious.
    Plugin Author webpushr

    (@webpushr)

    take a look at this guide: https://forum.webpushr.com/t/webpushr-compatibility-with-pwa-plugins/49

    Feel free to add your results to the thread.

    • This reply was modified 4 years, 5 months ago by webpushr.
    Thread Starter ionious

    (@ionious)

    Solved – solution was to include the sw URL to the top of pwa-sw.js

    Should be an easy implementation for you guys. Thanks for the help.

    Plugin Author webpushr

    (@webpushr)

    Thank you for your patience and the quick follow-up.

    • This reply was modified 4 years, 5 months ago by webpushr.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Compatibility with other PWA’ is closed to new replies.