Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build Instant Messenger in iphone

I'm looking into building an IM-type application for iPhone using Objective-C. I'd be interested to see any information/advice on how applications like Skype/AIM/MSN work, as well as any technologies/APIs that might be relevant.

like image 560
satya Avatar asked Dec 16 '10 11:12

satya


People also ask

How do I get instant messaging on my iPhone?

Sign in to iMessageGo to Settings > Messages, then turn on iMessage. To select the phone numbers and email addresses you want to use with iMessage, go to Settings > Messages > Send & Receive, then choose from the available options below “You can receive iMessages to and reply from.”

Does Apple have instant messenger?

Apple iMessage (Apple instant message) is an instant messenger service developed by Apple Inc. that allows end users to send texts, documents, photos, videos, locations, contact information and group messages over Wi-Fi, 3G or LTE networks to other iOS or OS X users.


2 Answers

The main protocol used to connect to those services (or even your own) is XMPP (also known as Jabber.

It connects to a Jabber/XMPP server that manages the sessions. XMPP works with Skype, Google Talk, Facebook chat and many more.

I've successfully implemeted a google chat app using this open source XMPP library that fits in very well into iPhone:

http://code.google.com/p/xmppframework/wiki/iPhone

Update

Library now moved to GitHub: github.com/robbiehanson/XMPPFramework as Raspu pointed out

You should be able to rather easily get that up and running. It even comes with a Google talk example.

like image 54
shein Avatar answered Sep 23 '22 17:09

shein


You can use Kik API to build your mobile app on top of Kik's instant messaging transport and infrastructure. The API is available for Android & iPhone and lets your app to transfer rich content and files in between mobile app users. It is also very easy to use - only 5 lines of code are needed to integrate, in simpler scenarios. There's more info on Kik API website: http://www.kik.com/dev or http://apiblog.kik.com

Disclaimer: I'm one of the developers behind Kik API :)

like image 33
Yuriy Avatar answered Sep 23 '22 17:09

Yuriy