# Service Worker - Work Around

**URL:** <https://forum.wixstudio.com/t/service-worker-work-around/2272>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [February 4, 2021, 8:19am UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272 "2021-02-04T08:19:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulcf007](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/paulcf007/32/25268_2.png) [@paulcf007](https://forum.wixstudio.com/u/paulcf007)\
**Post date:** [February 4, 2021, 8:19am UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/1 "2021-02-04T08:19:55Z")

</div>

I can see their is currently no way to add a service worker to the root directory do we have a work around for now?

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [February 4, 2021, 8:25am UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/2 "2021-02-04T08:25:07Z")

</div>

What are you trying to accomplish?

---

<div class="post-metadata">

**Author:** ![paulcf007](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/paulcf007/32/25268_2.png) [@paulcf007](https://forum.wixstudio.com/u/paulcf007)\
**Post date:** [February 4, 2021, 8:30am UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/3 "2021-02-04T08:30:44Z")

</div>

Hi Yisrael

Im tryin to build PWA so I dont have ot move a large project off wix, Im happy to use a work around untill its hopefully a feature, few post mention the html irfame do you know if this work and if so how, Thanks in advance

Regards P

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [February 4, 2021, 9:48am UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/4 "2021-02-04T09:48:17Z")

</div>

You might want to consider [GoNative](https://gonative.io) . One of my colleagues recommended it. It’s not a PWA, rather it’s a Webview app. It might do the job for you.

---

<div class="post-metadata">

**Author:** ![capwattnu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/capwattnu/32/84545_2.png) [@capwattnu](https://forum.wixstudio.com/u/capwattnu)\
**Post date:** [February 4, 2021, 2:48pm UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/5 "2021-02-04T14:48:01Z")

</div>

I would as well love to see this feature of being able to place a service-worker.js in the root. GoNative does not compare with PWAs. It supports a different use case (and it has an additional price tag as well). IMO, wix is missing an important use case, if PWAs won’t be possible to achieve.  
@paulcf007 : Did you solve the additional challenge of referencing the webmanifest.json of the PWA? This requires to place a " " in html. Please let me know if you have solved this and how.  
Thanks and regards, KK

---

<div class="post-metadata">

**Author:** ![collimarco91](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@collimarco91](https://forum.wixstudio.com/u/collimarco91)\
**Post date:** [October 20, 2022, 1:46pm UTC](https://forum.wixstudio.com/t/service-worker-work-around/2272/6 "2022-10-20T13:46:47Z")

</div>

Here’s a workaround that we use for web push notifications:

[https://blog.pushpad.xyz/2022/10/add-push-notifications-to-wix/](https://blog.pushpad.xyz/2022/10/add-push-notifications-to-wix/)

You can adapt the examples to your needs: basically the article describes a way to register a service worker in the root scope, even if you can’t upload a file in the root. Hope it helps
