• Resolved mddsharp

    (@mddsharp)


    CAOS Plugin which allows you to host Google Analytics locally instead of having to contact Tag Manager to gain some performance help stops PWA from working.

    Weston, let me know if you need me to enable it on my site to debug

    Right now it’s OFF at https://ccountync.com/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    Just chiming in here. ??

    Could you specify ‘not working’? Are you getting errors? Are certain pages unreachable?

    Have you checked your PHP logs for relevant errors?

    Thread Starter mddsharp

    (@mddsharp)

    @daanvandenbergh The plugin works fine, no errors at all. But once installed, PWA stops working.

    Thread Starter mddsharp

    (@mddsharp)

    @daanvandenbergh Or rather I should say, a user does not get the “Add To Home Screen” prompt.

    Thread Starter mddsharp

    (@mddsharp)

    As soon as I activate CAOS, PWS stops offering to add to home screen. As soon as I deactivate and delete, PWS does offer.

    • This reply was modified 4 years, 9 months ago by mddsharp.

    Hi,

    I’m sorry for the hold up. I haven’t had time to look into this. I will soon, though.

    Plugin Author Weston Ruter

    (@westonruter)

    Does CAOS register a service worker?

    Hi Weston,

    No, it does not. I’m thinking about adding that though. Still, what I don’t get is: why would CAOS break PWA?

    Could it be due to the analytics.js script, which requires the window object, which doesn’t exist in a PWA, therefore crashing JavaScript execution?

    Plugin Author Weston Ruter

    (@westonruter)

    I don’t see why your analytics.js would impact in any way the registration of the service worker from the PWA plugin. They should be entirely separate. Since they are in separate scripts (the PWA adds an inline script to install the service worker) an error in one should not affect the execution of the other.

    Since they are in separate scripts (the PWA adds an inline script to install the service worker) an error in one should not affect the execution of the other.

    So, following that logic, if a JS minifier/combiner is active, the execution of the entire file might crash, right?

    Plugin Author Weston Ruter

    (@westonruter)

    Oh yes, that could be the case.

    Thanks. Lots of people still use that (even when HTTP/2 is active.)

    I think I need to write a separate Analytics-script, which works with PWA. Ideally I would be able to detect in PHP if the client is a PWA. Do you know of such a way?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘CAOS Plugin Kills PWA’ is closed to new replies.