By default, iMessage shows previews and alerts on the Lock screen and Home screen of your iPhone, iPad, and iPod touch. Some people may not like that behavior and prefer more privacy — be they big business dealings or super secret sextings, we don't judge! Here's how to keep your iMessages away from prying eyes!
By default iOS will show a short preview of your iMessage (or SMS) on both the Lock screen and Home screen. If you'd rather have your notification only show the sender's name, however, you can easily adjust the settings of the Messages app to do so.
That's all there is to it. Now when your iPhone or iPad receives messages, no notification will pop up. You'll still hear an audible tone and get an alert but only the sender's name appears on the Lock screen or in the top banner notification. You can customize this further in the same section to disable alerts altogether if you prefer.
If you're having issues getting iMessage to activate, get more help at the iMore forums, and for more tips, check out: