You can turn off notifications on your Android phone or tablet on an app-by-app basis, or all at once.
You can use the Do Not Disturb feature on your iPhone whenever you want to silence any calls, texts, or other notifications.