Does the app do anything else other than ping the server? Best way to 
approach this really would be to set an alarm which fires every 30 seconds, 
when you receive the alarm take a partial wakelock and fire a service to 
perform the ping, this service should also take and release a wakelock 
whilst performing the ping. 

On Monday, 22 April 2013 22:00:32 UTC+1, paladin wrote:
>
> I have an app that is supposed to send a ping to a server every 30 
> seconds. When the app goes to sleep, it's still supposed to do this, but 
> I've been testing and it seems to stop sending any updates after 1 hour, 
> consistently. Is this a "deep sleep"? I have seen no documentation on this. 
> Has anyone experienced this? Would anyone know how to keep it from going 
> into deep sleep?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to