abissa
abissa

Reputation: 173

Android Notifications like WhatsApp

I'm making an Android application and I want to get notifications like in WhatsApp – as the message comes. If any updates are made on the server then a notification should come to the user so he can check the application. Any help would be appreciated.

Upvotes: 0

Views: 617

Answers (2)

jcbermu
jcbermu

Reputation: 571

You need to use Google Cloud Messaging. With it you can send information from a server to an Android device. The Android device will be waiting for messages from the server instead of polling the server at timed intervals.

Upvotes: 1

MyWay
MyWay

Reputation: 1025

Firstly you need to integrate GCM with your system, so application need to get sender_id from google and put it to your server. Then if you want to invoke notification on your app you need to send message using this sender_id.

Here you can find nice tutorial. If you will have any question just give me a word.

I hope it would help you

Upvotes: 1

Related Questions