---
title: "Comment by Anton Andreasson on \"The only snippet you will need to deal with push notifications in a service worker\" | Hashnode"
description: "Great post! But how would you integrate this into your Workbox setup? I&#39;m having troubles since I&#39;m using its auto-generated sw.js file based on my work"
url: "https://hashnode.com/posts/the-only-snippet-you-will-need-to-deal-with-push-notifications-in-a-service-worker/6359206e282c738de3b46650/comment/642bef40ae2a7e07433942c8"
---

[Discussion](https://hashnode.com/posts/the-only-snippet-you-will-need-to-deal-with-push-notifications-in-a-service-worker/6359206e282c738de3b46650)

Comment [The only snippet you will need to deal with push notifications in a service worker](https://hashnode.com/posts/the-only-snippet-you-will-need-to-deal-with-push-notifications-in-a-service-worker/6359206e282c738de3b46650)

[Anton Andreasson](https://hashnode.com/@naton)

[Apr 4, 2023](https://hashnode.com/posts/the-only-snippet-you-will-need-to-deal-with-push-notifications-in-a-service-worker/6359206e282c738de3b46650/comment/642bef40ae2a7e07433942c8)

Great post! But how would you integrate this into your Workbox setup? I'm having troubles since I'm using its auto-generated sw.js file based on my workbox config, are you adding the push code there too or somewhere else..?
