Action Required - Migrate your Service Worker Integration

krDhiraj
New Member
1 0 0

Hello,


We get an email from shopify - "We’re contacting you to inform you that as of March 1st, Service workers with a root scope, relying on the Service-Worker-Allowed header, will no longer be supported.

To implement this changes, we are unable to find any solution in shopify documentation.

We are using proxy for service worker to run push notifications.

Example  -   https://example.com/apps/app-name?bid=1234&hash=2.1   forwards to the proxy URL at https://push.domain.com/sw?bid=1234&hash=2.1

In this example  - 
Sub path prefix: apps
Sub path: app-name

sub path is the name of our apps.


proxy URL: https://push.domain.com/sw?bid=1234&hash=2.1

On proxy URL we have set header  - Service-Worker-Allowed: /

 

0 Likes