user3302527
user3302527

Reputation: 73

Data push in Android from a Java server

I am developing an Android application that connects to a Java server (with sockets). How I can do to make the server send data to clients when some data is changed on the server?

Upvotes: 1

Views: 94

Answers (1)

stamanuel
stamanuel

Reputation: 3809

i would recommend using googles push services:

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

that way you don't need a static connection to the server, but just fetch new data from the server if the client receives a push notification (or- if the information is not too big, you can add it as payload to the push notification).

alternatively if you want to support multiple platforms you could also take a look at services like urban airship:

http://urbanairship.com/

Upvotes: 2

Related Questions