I need to develop an ANDROID client that will communicate with the server that runs WCF REST services.
Since I have limited experience with this I am looking a solution for:
- pushing data to android device (the client needs constant updates from the server)
- calling a method on server (reflection)
Any ideas/hints/samples are most welcome !
For push notifications, check out Google’s C2DM framework (cloud to device messaging). It’s available on Android 2.2 and up.
Basically, the phone will maintain an open socket with Google’s servers, and when you want to push data to a device, you POST a request to Google from your web app (you’d likely use System.Net.WebRequest from .NET, for example), and they handle the rest.
For more info on setting up things from your Android app, see this tutorial.