Use Notifications Systems Preferences to specify when you don’t want to be disturbed by notifications, and set options to control how apps show notifications and how they’re sorted in Notification Center.
To open these preferences, choose Apple menu > System Preferences, then click Notifications. Select Do Not Disturb or an app on the left, then view or change settings on the right.
Do Not Disturb
Select checkboxes to receive call notifications even when Do Not Disturb is on.
Note: You can quickly pause notifications until midnight by clicking the Notification Center icon in the menu bar, swiping down, then turning on Do Not Disturb.
[App] alert style
Select a style for the app’s notifications:
Show notifications on lock screen
When you wake your Mac from sleep, app notifications you received while it was sleeping are shown in the login window.
Show message preview (available only for certain apps, such as Mail or Messages)
Show a preview of a message in message notifications. For example, if you receive an email, you see a preview of the email in the Mail notification.
If you chose to show notifications on the lock screen, you can choose when to show the preview.
Show in Notification Center
List the app’s recent notifications in Notification Center. Notifications older than seven days aren’t shown.
Badge app icon
Let the app show the number of notifications on its icon in the Dock.
Play sound for notifications
Let the app play notification sounds.
Notification Center sort order
Choose how notifications are sorted in Notification Center: