Implement instant messaging app

I would like to implement instant messaging app like messenger or whatsapp or line.

Have they implemented by opening socket?

What are pros/cons for opening socket and polling?

Do you have the example or tutorial for implementing this?

Hi @ccnamtan, here is a tutorial for creating a real time chat app using Firebase: https://www.raywenderlich.com/5359-firebase-tutorial-real-time-chat .

Here are two more tutorials that focus on sockets:
https://www.raywenderlich.com/861-websockets-on-ios-with-starscream https://www.raywenderlich.com/537-real-time-communication-with-streams-tutorial-for-ios .

Hope this helps!

This topic was automatically closed after 166 days. New replies are no longer allowed.