Developer Builds Offline-Only Geofencing App to Auto-Silence Phones in Sensitive Spaces
A developer created Muffle, an Android app that automatically silences a phone based on location, after an embarrassing ringtone incident during mosque prayers highlighted the failure of manual phone management. The app uses Google Play Services' GeofencingClient combined with a custom logic layer to perform all geofencing entirely on-device, with no cloud calls or API tokens required. To prevent Android's Doze mode from delaying or killing background location triggers, the app runs a ForegroundService, trading a small battery overhead for reliable, real-time transitions. A BroadcastReceiver listens for geofence entry and exit events and invokes the AudioManager directly, ensuring volume changes occur even with the screen off. The developer found that stripping away network-assisted location made GPS alone unreliable indoors, pointing to a deeper challenge in building truly offline-first location-aware systems.
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