title: Polling asp.net MVC server from an Android client
body: <p>After much research and bumping into the wall a couple of times, it's time to ask some questions.</p>
  
  <p>I'm developing a project which is going to send a message from a web client to a server, then the server should notify multiple clients about the update, which should be done in seconds.</p>
  
  <p>First I thought of using GCM notifications, but the user then have to push the notification in order for some code to run on the client (turning on gps and stuff) but my clients don't have time for clicking the notification when it arrives. So it has to be done without user interaction.</p>
  
  <p>Next thing I thought about was if the android client could listen to the c# server and run code when the server had a new message, but I haven't found a working torturial yet. I was looking into GCM again without push, just messages back and forward, but it's getting difficult to get to work. Also sockets was a option, but it also seems really difficult to get to work and I'm not sure if those options are the way to go.</p>
  
  <p>So I was thinking to just let the android have a background service which is polling either a database or a method on my c# server.</p>
  
  <p>Can anybody give me an idea of what is the right option and maybe a link to a tutorial which is a nice step by step thing.</p>
  
  <p>It could be nice if I had the option to also use it on IOS at a later point. </p>