I am making a chatting application in which I have successfully implemented chatting functionality. But my chatting works well when the two persons have both opened the chat screen opened in their phones. If the other person is not on the same screen then the chat message sent by one person is lost. I want here that if the other is not on the same screen then the he/she should receive the chat message as a notification. Please help me regarding the same.
Thanks