Posted by: Tharindu | January 18, 2009

My first iPhone App-Xmpp chat client

I have developed my first real iPhone application to get a kick on iPhone development. I was completely new to Objective-C and it was really difficult to initially pick up the things. But with in a week, I found it its really easier to program using X-code. First day I could not successfully write my own code and run. I have read almost all Apple recomended guides forĀ  iPhone application development and also the videos, But the book that I used to get a start was iPhone Developers’ Cook book.

Once I read that I found it easier to understand iPhone OS programming guide. Because it is lacking some full code implementations for a complete new developer for Objective-C. I have initially coded few small application to get familiar with IB, X-Code and UIKit framwork specially. I am working at hSenid Mobile Solutions as an undergraduate trainee. After initial studies I was asked to implement an iPhone XMPP chat client. Once I went through XMPP protocol, I found there already exists xmpp framework for Objective-C in Google Code, but it was a Mac App. I have used ejabberd server as the XMPP server and my supervisor asked me to configure and install it. I used it as the model for my application and changed it to be run with iPhone OS. After that I have implemented required controller and view to finish my application. Here as some screen shots of my App running with iPhone Simulator.

xmpp Application in Settings contacts view delete button appeared on swipe new contact add screen


Responses

  1. Hi Tharindu,

    I am new to iPhone and XCode, and really interested in making applications for iPhone.
    I am developing a XMPP client using OpenFire as XMPP Server. While searching for the approach and some samples for developing XMPP client i found this post helpful.

    As you have successfully developed this client on iPhone i need some guidance, how to approach and what API’s to be used for this client.

    It will be helpful if u can provide me some sample code of this client.

    Thanks in Advance
    Sainath

    • Sainath Rapaka:
      Hi, It would be useful to start with Apple resources, but ‘iPhone Developer Cook Book’ is a good ebook to refer. and you can use ‘xmppframework’ google code as your back end with several modifications to it. Please refer wiki pages for more information. The framework is implemented for Mac OS X and can be used for iPhone. it would really help your course.

  2. Hi,

    I’m very interested in the way you’ve changed XCode config to setup an iPhone version of XMPPFramework

    Let me know …

    • Fred:
      Please use the wiki page on xmppframework google code page. It contains all the information on how to use xmppframework for iPhone. But you will have to try several times make it running. And also iPhone OS 3.0, some deprecated methods are removed from OS 2.2, there fore you have to modify some code. Please use xmppframework google group to clarify your questions. Happy learning :)

  3. Cool app. I am using iphonexmpp framework. Is there any way to join jabber chat room? And how to get list of all users logged in that chat room?

  4. A Nice Work.


Leave a response

Your response:

Categories