0

I do not know much about REST servers notifications, so how can I get server's notification\event on my Android app? One way I can suppose is send request to server and wait until response which is delayed, but this decision seems me wrong. Any suggestions? Thanks.

Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62

1 Answers1

1

You have all the documentation in Android developers.

One way to do what you want is called Push Notifications and is doing throw Google Cloud Messaging (GCM).

It involves using Google APIs, to code some classes in your Android App, and to code other stuff in your server part.

By the end, you should be able to send a simple message to a device and show a notification.

http://developer.android.com/google/gcm/index.html

jDur
  • 1,481
  • 9
  • 10