I want to integrate service worker to my web app and send push notification almost similar to Facebook (Send notification even if Faceook is not open)
My service worker and even push event is working fine, when the https://my-app-url.com is opened in one of the tab. Any push event from server sends data to the UI perfectly fine. I can see the service worker status in this case. It shows "activated and running " state.
But when the URL is not opened in any of the browser tab, the service worker do not listen to push event and even the Service Worker status shows "activated and stopped".
Can any one please help me here. Is that expected to show Service worker status as "activated and stopped"?