Our webapp registers a service worker. We also have a Chrome extension. What we need is to send messages from service worker to the extension without having the webapp open. What is the right approach to do that?
Our current solution is requesting some URL in the service worker and capturing it in the extension's background script using webRequest
- chrome.webRequest.onBeforeRequest.addListener
. It works but it looks pretty much nonstandardly.