Praxcision

Keeping an app awake for an hour

The gist: Phones are designed to stop long-running work. Battery, heat, memory pressure, the operating system deciding you're done, and the backlog that builds while the app is under strain.

Phones are very good at protecting their batteries, which means they are very good at shutting down apps that run for a long time. That's great for your social feed and a real problem for an app that is supposed to keep listening while someone works for an hour with their hands full.

So a surprising amount of the time goes on things nobody will ever see: what happens when the phone gets warm, when memory runs low, or when the system decides you've had enough. When the app falls behind, it has to catch up without making the person wait. The goal is that none of this is ever visible, which is harder than it sounds.

All posts