I created an application where user can chat with Trainer at any time. I need a medium to send and receive messages like instant messenger. I don't want to buy third party SDK's , because I need to store all messages and attachments in my server DB.
I searched in google, every chat app was integrated through parse or push notification . Will that give more convenient integration procedure? But from my studies, notification willn't help for chat, because If APN server has multiple messages in queue it'll send only the latest one, Finally I will lack my past messages.
I need a class files or anything to communicate between two users.
Need notification for new messages.
Want to store all chats in my server DB.
Is this requirement sounds good??? If possible can you please help me to find out the way?