Auto Silence Phone
Assalamu Alaikum
Problem
Phones ring during Salah. This is distracting, especially when praying in congregation at the Masjid.
Potential Solutions
When the MasjidBox app detects the phone is at any masjid, the app silences the phone ringer.
Silence the phone ringer after Athan and restore the previous ringer settings 30 minutes after Iqamah
Solution #1 Details
The solution assumes:
MasjidBox is already keeping a record of the address/location of a Masjid when it enrolls into the program
Asking the user for their location and managing the ringer settings is within company policy
The user approves the necessary permission requests.
To determine if the phone is at a masjid, the app could compare the location of the phone and the location of the masajid in it’s database. If they’re close to each other, say within a 100ft radius, the app would silence the phone. Once the phone is outside of that radius, the phone ringer would be restored to its previous state.
The location comparison can be done on a regular and reasonable interval, maybe every 15 minutes.
Solution #2 Details
The solution assumes:
Asking the user to manage the ringer settings is within company policy
The user approves the necessary permission requests.
An event is already processed at Athan time (the notification). Process another event to mute the ringer. Schedule a second event 30 minutes after Iqama to restore the ringer settings.
Suggested Solution
Solution #2
requires less permissions (no location)
more straightforward calculation (no comparison with the list of all masajid)
more performative (no code execution at regular intervals)
uses the existing pattern of event processing at athan time
broader solution (the phone is silenced even if the user prays at home)
Failed Solutions
Remind attendees before salah to mute their phones. The reminder is ignored
JazakAllahu Khairan
Log in to comment and vote
No comments yet
Be the first to share your thoughts.