by Tactical Freak
When the phone is face down, charging, and in dim light, the phone will switch to airplane mode and disable sound (only vibrate).
Then, when the phone will detect light, its face up and the absence of power cable, then the airplane mode is disabled and the sound volume restored to its previous value before sleeping.
Does not rely on time of the day, and is configuration free :)
Rate and review within the app in the Community section.