Developer builds Android app to auto-silence phones by location, working around Doze mode
A developer built Muffle, an Android app that automatically changes a phone's sound profile when the user enters certain locations, such as a mosque or a meeting room. The project was motivated by repeated embarrassing incidents where forgotten notifications disrupted quiet settings. Early attempts using standard location monitoring failed because Android's Doze mode put the app's processes to sleep and throttled background tasks. The developer shifted to Google Play Services' geofencing and then a foreground service with persistent notification, combined with WorkManager for less time-critical jobs. The service was made to restart after system termination, and a boot receiver was added so routines persist across reboots and updates.
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