简体   繁体   中英

Instant Messaging App Mechanism

I've read many inconclusive articles regarding the mechanisms used by IM apps for mobile devices and I'd like someone to please clarify this for me. Do all IM apps for mobile devices simply use SMS? If not, how does the real-time communication between devices work? Is there an intermediate server? Thanks.

Most cellular carriers do not allow sockets which accept connections (servers) to run on mobile devices. As far as I understand, IM services with large numbers of users (eg MSN, AIM, Yahoo, ICQ, Skype) rely on a server to transfer the messages between mobile clients. I make this conclusion because each client must log into the server in order to use the IM service; they offer no way to do peer-to-peer connections and avoid logging in to the server.

No, SMS is never used for what's considered instant messaging by most. If you want to develop instant messaging app, you'll need a server and push notifications. I recommend Parse Push , but you should take a look at Google Cloud Messaging , too. If nothing else, it will give you an idea on how this stuff works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM