Search code examples
swiftmongodbios9chatinstant-messaging

Chat application in Swift ios9


I would like to implement messaging in my app. Every user will have an inbox and could be able to send messages to another user.

I do not want to use Parse or Firebase because I already have a MongoDB and a backend API to manage users. I also use FacebookLogin/Logout.

Are you aware of a good SDK to help me realizing this feature? Or a tutorial to start somewhere?

Thank you for any feedback.


Solution

  • I personally did in a location based chat app using push notifications and saving the messages sent and received on a database.

    When a user sends a message you simultaneously send a push notification to the user and save it on your database. When the user checks their inbox view it will load the data saved on the inbox table. Using this approach you can choose which ever database and push notification provider you prefer.

    Another option is using websockets for real time communication.