I like to turn off all notifications (noise, vibration, and lock screen) other than audio calls. All other messaging is asynchronous and shouldn’t be important enough to disturb your focus. On iOS, I even move the apps that have the little red numeric notification circle to a different page than the first, so I don’t see it until I want to see it.