I am currently using Signalr to push messages to the browser. I'm developing as a web page at the moment but will potentially be wrapped in Cordova, although I would prefer to use standard APIs if possible.
The issue as I see it is the nature of mobile processes (which go to sleep), browser tabs (which get closed or hidden), and the need to ensure that the connection and listener are live at the time message is sent to the device.
As I understand it this can be solved by using a
However, it's not clear that the Signalr client side library is designed to work inside a service worker... it seems to use jquery.
Has anyone trodden this path?