Disable preview for notifications
This is how you set the preview for notifications:
- Open the Settings app.
- Tap Notification .
- At the top you will find the Show preview option .
- You have three options here: Always (including from the access screen), If unlocked or Never . Make your choice.
The setting can be useful for privacy-sensitive apps, so the content can only be seen if you unlock your device. The switch is only available on devices running on iOS 11 and later.
You can also disable specific notifications in the Message Center.
In WhatsApp you can control the preview settings via the app itself. For WhatsApp it goes via the settings of WhatsApp itself. Open WhatsApp and go to Settings> Notifications> Show preview. In WhatsApp you can choose whether the preview is shown with an unlocked iPhone.