I am building an iOS app to integrate with Facebook Chat using XMPP (I am using the XMPPFramework library). It works fine when I am testing myself with 2 iPhones but when I asked my beta users (around 5 in total) to test it simultaneously, I encountered two connection issues:
- When my app tried to open a connection to chat.facebook.com, it occasionally received a "connection refused" error.
- Even though a connection was made successfully, it dropped after a short period (less than a minute) with an error "Socket closed by remote peer".
As I said it works fine when I am just testing it with myself with 2 iPhones so all permission setup should be correct. I am wondering if Facebook has placed any simultaneous limit on number of chat connections for an app or if I have missed anything.
Any help is greatly appreciated.