Recent versions of the Android operating system display notifications on the lock screen of the device by default.

Some users may like this as it gives them access to notifications on first glance without having to unlock the device first to check out new notifications.

The functionality has one serious drawback, however. Since notifications are shown on the lock screen, anyone with access to the Android device may see them as well.

While that is not a problem when we are talking about new chat messages usually, it may be one if you get two-factor authentication codes or other important information displayed there as well. Even chat messages may be an issue, if you don't want someone else to see messages when they lift up your phone or device.

https://www.ghacks.net/wp-content/up...ications-1.jpg

I use PayPal and have configured the service to send me a verification code each time I sign in to the service. The code is displayed in full on the lock screen of the device and while that speeds up the process of entering it on the PayPal website, anyone else with access to the screen would see it in its entirety as well.

Disabling lock screen notifications

https://www.ghacks.net/wp-content/up...ifications.png

Luckily, there is an option in the settings to turn off lock screen notifications on Android. Please note that how you get there may be different on your device as some manufacturers use different layouts for the Settings on the device.

The following applies to a Nokia 5 running Android 8.1 (which is more or less stock Android).

  1. Open the Settings on the device. I have to swipe up on the main screen and select Settings from the list of applications on the device.
  2. Select Security & Location when the Settings open.
  3. Activate Lock screen preferences on the screen.
  4. Tap on "On the lock screen".
  5. Select either "Hide sensitive notification content" or "Don't show notifications at all".

Select the "don't show" option if you don't want any notifications to appear on the lock screen.

https://www.ghacks.net/wp-content/up...ifications.jpg

Sensitive content is hidden on the lock screen but the notifications are still shown. Sensitive content includes new emails and chat messages among other things that are not shown anymore. You get a "contents hidden" or blank content area instead depending on your device so that you still know that new content is available but can't see anymore what it is until you unlock the device and open the notifications.

Tip: you can turn off notifications for individual applications installed on the Android device as well. Doing so blocks the application from notifying you. Note that this blocks notifications entirely, not only on the lock screen of the device.

You can long-tap on any notification in newer versions of Android to disable notifications for the selected app, or open the Settings to customize the notification permissions further.