Unable to connect XMPPFramework to Openfire server in iOS

前端 未结 2 1673
萌比男神i
萌比男神i 2021-01-21 20:03

I am working on an iOS chat app where user login to app. I\'ve downloaded XMPPFramework from GitHub XMPPFramework. I am trying to connect XMPP

2条回答
  •  逝去的感伤
    2021-01-21 20:53

    A host of possibilities.

    Try adding break points at xmppStreamDidConnect and xmppStreamDidAuthenticate.

    If xmppStreamDidConnect isn't reached, the connection is not established; you've to rectify your hostName.

    If xmppStreamDidAuthenticate isn't reached, the user is not authenticated; you've to rectify your credentials i.e. username and/or password.

    One common mistake is omitting of @domainname at the back of username i.e. username@domainname e.g. keithoys@openfireserver where domain name is openfireserver.

提交回复
热议问题