I was a little jealous that my iphone 7 would display text messages while locked and sleeping. I found that using the Textra messaging app on my S8, I could go into settings, heads up notifications, and select what I wanted displayed when the phone was sleeping.