How does my iPhone know when the person texting me is typing?

Waiting for text
It can be agonizing watching those three little dots flicker on your smartphone screen.
Wavebreakmedia Ltd/Lightwavemedia/Thinkstock

If you're an iPhone user, this scenario probably sounds familiar: You send someone a message, notice that it's been delivered and read, and then watch three little dots hover in a conversation bubble as you wait expectantly for a reply. But how does your iPhone know when the person texting you is typing?

You might have noticed the telltale ellipsis appears only when you're sending and receiving via iMessage; that is, exchanging texts with another user on an iPhone, iPad or iPod Touch. In 2011, Apple introduced iMessage as part of its iOS 5 release [source: Apple]. The iMessage service, which is built into the iPhone Messages app, looks just like texting but works more like an instant messaging application. When you use your iPhone's messaging app to send a text to another iMessage user, your phone recognizes the recipient's Apple ID and automatically sends the message via the iMessage service [source: Apple].


Unlike SMS text messages, which are sent through your mobile carrier's cellular network, iMessage texts are routed through Apple's servers using a technology called Apple Push Notification service (APNs) [sources: Apple, Dilger, iAnswerGuy]. The APNs is based on eXtensible Messaging and Presence Protocol (XMPP), the same system used by Google Talk and Apple's own iChat instant messaging service [sources: Apple, Dilger]. XMPP provides a way for servers to communicate with one another, allowing a user on one server to receive notifications posted through a different server. Whenever you have a network connection, your iPhone continuously checks with the APNs servers to see whether they have anything new to send your way, including text messages, FaceTime calls or alert notifications for other apps [sources: Apple, Dilger]. Because the iPhone at the other end of your text conversation is also communicating with the APNs servers, the servers are able to detect new activity, associate it with your Apple ID and let you know a text is on the way.

If your WiFi or cellular network is unavailable, or if you exchange messages with someone on a different mobile operating system, your iPhone will automatically switch from iMessage to standard SMS texting, leaving you in the dark as to whether anyone has read or begun to reply to your message.


Lots More Information

Related Articles

  • Apple. "iOS 5 Software Update v1.0." October 10, 2011. (August 4, 2014)
  • Apple. "iOS 7 — Messages." (August 4, 2014)
  • Apple. "Apple Push Notification Service." Mac Developer Library. (August 4, 2014)
  • Apple. "Server Notification Center Development Guide." Jan. 20, 2010. (August 4, 2014)
  • Caldwell, Serenity. "Up close with iOS 5: iMessage." Macworld. Oct. 12, 2011. (August 4, 2014)
  • Cipriani, Jason. "How to get started with iMessage." Sept. 16, 2011. (August 4, 2014)
  • Dilger, Daniel Erin. "Inside Apple's move to open up SMS-style messaging to non-mobile clients." Apple Insider. June 7, 2011. (August 4, 2014)
  • iAnswerGuy. "What's the difference between a text message and iMessage?" (August 4, 2014)
  • iAnswerGuy. "Why are iMessages being sent as SMS messages?" (August 4, 2014)