1
votes

I added chat features in my app. Code work fine upto get RosterList from chat server. enter image description here

But get below error while sending chat message

D/SMACK: 11:30:02 AM SENT (600971785): <message id="c2b06df7-c232-41b0-a62b-cfbf060f716f" to="[email protected]" type="chat"><body>{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:&quot;hii&quot;,&quot;msgID&quot;:&quot;c2b06df7-c232-41b0-a62b-cfbf060f716f&quot;,&quot;thumb_url&quot;:&quot;&quot;}</body></message>

D/SMACK: 11:30:02 AM RCV  (600971785): <message id="c2b06df7-c232-41b0-a62b-cfbf060f716f" to="[email protected]" from="[email protected]" type="error"><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></message>

I also refer this and this , but I can't get my answer.

1

1 Answers

0
votes

First of all, don't put anything other than human-readable text in the <body/> of messages. Follow this advice to add custom data to XMPP messages.

The remote-server-not-found means that your XMPP server was unable to connect to the XMPP server for the domain you tried to send the message to. You have to make sure that domainname.com is the correct domain for the account 2.