Almost all the phones out there, including iPhones and Androids and even Windows phones have the ability to open a socket and leave it open until it times out (15 to 18 minutes later) to detect when there is something to send, (an email arrived, a message, etc).