New Shopify Certification now available: Liquid Storefronts for Theme Developers

What have ways to include web push or (how to activate service worker)?

Shopify Partner
2 0 2

I develop an app for Shopify, and I have web push, and it needs somehow include in the shop. Well, I need the opportunity to have access to sw.js(my service worker file) from the root of a shop. As I understand earlier, this could do it from a proxy and add the header service-worker-allowed: /. But at the start of 2021, Shopify began to clear this header, and this way doesn't work. And also I can't add the file to the root of a shop.
And I don't understand how I can do it. Please give me some way how I can activate service workers through my app.

Replies 0 (0)