How to make such a thing.

Here we have a server, this server will pick up the picture from time to time and send it to the user ... The user should receive notification .

As I understand it, the service should work and get token , but how to make it so that service doesn’t constantly check if there is an update, but wait until it gets something from the server ... And as soon as it receives, it immediately starts the notification ?

  • 2
    Google Cloud Messaging, her? - ermak0ff
  • 3
    Dig into the side of push-it and work with GCM, for example. There are many articles on this topic on the Internet. Here's an off article developers.google.com/cloud-messaging - Android Android

1 answer 1

In the end, I did everything with the help of GCM, Push, Service and BroadcastReceiver. The article is here.