Ios chat implementation (like whatsapp): websocket?

I am trying to implement a chat service in ios. My question is, how do services (like whatsApp) work?

I found a tutorial ( here ) on how to use websockets. Is it correct? In this case, the chat only works when the application is launched.

Does anyone have experience with this?

+3


source to share


1 answer


The tutorial looks very nice, it will tell you a good direction. If you want to implement a socket in the background, you need to look at Backgrounds.

http://www.raywenderlich.com/29948/backgrounding-for-ios



In short, if you open a socket, you mark it as VOIP one, which will keep it open even in the background.

+2


source







All Articles