PostMessage from serviceWorker after push event
I need to send a message from a serviceWorker to a page after a push event. I am unable to specify the port property (e.g. https://jakearchibald.github.io/isserviceworkerready/demos/postMessage/ ) because I did not post this post
This code does not work (maybe I am doing something wrong)
self.registration.active.postMessage('fsdfasf');
+3
source to share