How One Developer Built a Phone Auto-Silencer Using Android Geofencing
A developer built an Android app called Muffle that automatically silences a phone based on the user's location, inspired by witnessing an embarrassing ringtone interruption during a mosque sermon. The core challenge was balancing GPS accuracy against battery drain, as frequent polling kills battery life while infrequent polling causes missed location triggers. The app uses Google Play Services' GeofencingClient to offload proximity monitoring to the system level, which proved more efficient than custom foreground services. A minimum 150-meter geofence radius was found necessary for reliable entry detection, and Wi-Fi BSSID scanning was added as a fallback during Android's battery-saving Doze mode. Development also revealed significant inconsistencies in how GeofencingClient behaves across different Android device manufacturers.
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