title: Android C2DM sleeping phone
body: <p>According to <a href="http://www.youtube.com/watch?feature=player_profilepage&amp;v=PLM4LajwDVc#t=854s" rel="nofollow">this</a> Android C2DM keeps a socket alive with a heartbeat mechanism, making it able to receive push messages. This made me hope I could deliver messages to sleeping phones with an active wifi connection.</p>
  
  <p>I've made an implementation setting the "delay_while_idle" to '0'. The message is delivered if my phones' screen is powered off, but not if the phone goes to sleep (tested with intervals 20mins, 1-6 hours).</p>
  
  <p>I have acquired a partial cpu lock + a full wifi lock just in case.</p>
  
  <p>Have I simply made something fundamentally wrong or did I misunderstand the C2DM push functionality?</p>
  
  <p>Can I send messages to sleeping phones or not?</p>