I looking for a way to read notification message automatically, and displaying it, on receiving a message from the server, when the activity is on the foreground, just like a chat application.
I got GCM working, and i am able to create a notification when the client app receives a message from the server.
anyone guide me how to get this done?