Skip to content Skip to sidebar Skip to footer

How Does Whatsapp Keeps Its Ejabberd/xmpp Server Connected When The App Is Closed?

How does Whatsapp keep its connection to the socket when the app is totally closed off. Does Whatsapp use GCM or APNS push to trigger the App to sync with the Ejabberd?? Some peop

Solution 1:

To build a chat application on iOS, you will be disconnected after a few minutes in all case. What you have to do is to rely on Apple Push Notification service to let the user know new messages have been received.

It means that you have to make sure ejabberd is modified to be able to leverage push notification service and not only rely on XMPP connection being available to tell the user about new messages.

Post a Comment for "How Does Whatsapp Keeps Its Ejabberd/xmpp Server Connected When The App Is Closed?"