Building a chat-like functionality in iOS
- by Mani BAtra
I was planning to implement a functionality wherein a user can send data to a friend of his, similar to sending messages in WhatsApp. This is how I broke down the problem :
The user registers for the app. This equates to user info being stored on a dedicated server. With the phone number as the key identifier.
The user selects the friend to send a message to and pushes the data. The receiver polls the server regularly and acknowledges that the data has been received. I did a little bit of research and am thinking of implementing this using the XMPP Framework for iOS.
Any pointers as to is this the correct implementation or some advice in general?