3

How can I send data from a server to an Android device without the device polling for data?

Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
Phil
  • 31
  • 2

3 Answers3

4

This is called a server side 'push' and is commonly referred to as 'pushing'. This is a well known feature of the iPhone, however, it does not currently exist on the Android. Android Cloud 2 Device messaging has not yet been released to the general development community. you may want to check out projects such as MQTT and Deacon.

BeRecursive
  • 6,286
  • 1
  • 24
  • 41
1

GCM (Google Cloud Messaging) is the easiest way, and while GCM provides the basic service of sending messages, there are companies out there that do help you get up and running.

You could take a look at companies like urban airship, xtify and mBlox (developer.mblox.com) to get started with this and have a few additional tools that help you structure the push notifications in a more structured way.

Good Luck with your development!

1

You might consider using Googles cloud to device messaging for a solution. You'll have to sign up for an account and are only able to use AppEngine servers at the moment.

Your application has to use API level 8 (2.2) in order to be able to receive the cloud's pushes.

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87