-2

I have developed one chat application and its working fine.Now I would like manage the chat history for particular user who send message to him.How to manage chat history?

Thanks

Kiran K
  • 919
  • 10
  • 17
  • If you are using [XMPPFramework](https://github.com/robbiehanson/XMPPFramework) check out this [answer](http://stackoverflow.com/a/14361985/1407017). If not, then you would have to create your own DB using SQLite or CoreData. – Amar Jul 16 '13 at 09:49

1 Answers1

0

@Kiran, I think you will have an unique identifier(Thread ID) for every chat. You can use Core Data to store all the history.

Just create a new attribute for "History" which will have Items of "Chat" Object.

"Chat" object will also be an attribute, consisting "Name of Sender", "thread ID" and "Chat Message", "timeStamp", "Sender ID", "Reciever ID" etc as per your requirement.

Prem Prakash
  • 146
  • 1
  • 6