Notifications are generated after the message is pulled from Apple's servers to your device.
The push messages just tell your device a message is available to be pulled. It doesn't contain any message contents or metadata.
It's basically just "you have a new message waiting" and then your phone will ping Apple's server to request the message.