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

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

VladislavD
Shopify Partner
2 0 3

Hello!
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)