Android and iOS applications use push-notifications to deliver messages even when the application is not running. This is a common practice for mobile applications.
iOS push notification of an incoming chat
Android push notification of an incoming chat
When you tap on a push-notification, the Connect app will be opened on the chat where the notification came from so you could quickly reply to the message.