How to disable text message notifications when sleeping?
In Android 5.0 and up there's a Do Not Disturb mode which you can set for a specific time frame/days of week/and select exceptions too. It is under Settings - Sound &amp; notification (on my N6), or Settings - Sounds and vibration (on my Galaxy S7 Edge)