Hacker News new | ask | show | jobs
by morsch 3589 days ago
Here's something he's referring to; messaging through Google's cloud infrastructure may be privileged[0]: "Like in Marshmallow, apps can still "punch through" Doze mode by sending a "high-priority message" via Firebase Cloud Messaging (formerly called "Google Cloud Messaging"). High-priority messages are the expected format for instant messaging apps, so users still get notified of messages when their phone is Dozing."

Hard to say whether this is one way to do it, or the only way. (E.g. "Unlike stationary Doze, wake locks (apps requesting the phone stay awake so they can do background tasks) are still allowed.")

[0] http://arstechnica.com/gadgets/2016/08/android-7-0-nougat-re...

1 comments

Thanks, that’s part of what I was referring to.

A wake lock is possible, but it’s far more battery intensive than just using the pre-Nougat solutions.

Pre-Nougat, I could keep a socket open, and only have a timeout message sent every 28 minutes to keep it open – at very low battery cost.

Now I either have to keep a wakelock – keeping the CPU always on, instead of just a few milliseconds per hour – or I can’t use it at all.

That’s a severe issue for me.

(I can’t use GCM, due to architectural reasons, and would have to ask tenthousands of people to change their IRC bouncer setup completely).