If the user has allowed your notifications to be shown on the lockscreen, then they will be - and it will display the app name and content. 


You can set whether or not a notification shows on the lockscreen when creating a message.


Bear in mind, the notification title isn't shown until the user views the notification from inside the notification center.