How does a chat tracker help monitor conversations remotely?

@PrivacyNerd Sorry, but I still don’t get how they grab messages if the phone isn’t rooted or jailbroken. Is it only from notifications? What happens if someone deletes the message before it’s seen?