News for hackers. Stuff that matters.
Re:Bootstrapping GCM with Amazon SQS for Server-Client Commu... by pranayairan on Monday July 13, 2015 @03:34AM (#9876852)
nice are you shutting down the service if queue is empty ?? If not that would drain out the battery, also shutting down service when internet is not available should be good.
Re:Bootstrapping GCM with Amazon SQS for Server-Client Commu... by pocha on Monday July 13, 2015 @03:41AM (#9876866)
This is a pretty bare-bone POC app. While shutting down service when no internet makes sense, I am currently not doing it. But rest of the time, the service keeps listening on the queue all the time, even if there is no data in the queue.

I am wondering how much battery drain it could cause. Whatsapp also has this MessageService that keeps running all the time in the background & it has not been a battery hogger I guess.