According to this, Android C2DM supports the outlet in a live state using the heartbeat mechanism, which allows it to receive push messages. This made me hope that I could deliver messages to sleeping phones with an active Wi-Fi connection.
I set the parameter "delay_while_idle" to the value "0". A message is sent if the screen of my phone is turned off, but not if the phone goes into sleep mode (tested with an interval of 20 minutes, 1-6 hours).
Just in case, I acquired a partial cpu lock + full wifi lock.
Did I just do something fundamentally wrong or did I misunderstand the functionality of C2DM push?
Can I send messages to sleeping phones or not?
marko source
share