By default, all mobile OS will close the idle apps to save the battery power. Although our app will be disconnected, we will get notified using push notification for new messages.
If you want to display mobile offline state as online state in user list, in Server Manager > Configuration > Client Settings, Enable "Display as mobile status as online"