Displaying and receiving notification from a web api

I am developing a mobile application with a web platform. The web platform assign some task to the mobile application and the mobile application then reply concerning the task been assigned. The web platform connects to the mobile using an API. But i have been unable to send and implement notification into both the web and the mobile application. I would be so glad if i can get probably a blog or link that implements Receiving and sending notification between web and mobile.

Thank you

if you used websockets as the protocol this would be easy.,… as web sockets are always bidirectional.

this is what is used for most chat based applications.

you open a connection to the other side, setup a handler for incoming messages, and then send/receive app specific formatted messages on that connection.

good example and discussion