Developer builds Android geofencing app to auto-silence phones, balancing battery use and location accuracy
The article describes an incident at a Friday prayer where a ringing phone disrupted the service, highlighting how forgotten silent modes disturb sacred and focused spaces. The author argues that manual sound toggling is error-prone and that existing automation tools are either too complex or unreliable under modern Android battery policies. To address this, they built Muffle, an app that uses geofences to switch phones to silent when entering defined zones. The design trades off GPS accuracy against battery drain, using a fused location provider, a foreground service, and a 30-second hysteresis buffer to prevent rapid mode flapping near boundaries. The author also reports that manufacturer-specific battery optimization layers were the biggest obstacle, sometimes stopping geofencing when the screen was off.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in