我在iOS中使用iOS。我发出这样的信息:
<message type="groupchat" to="groupname@conference.im.xx.cn">
<x xmlns="jabber:x:event">
<offline/>
<delivered/>
<displayed/>
<composing/>
</x>
<body><Message FontName='宋体' FontSize='200' FontColr='0' FontBold='0'>asdf</Message></body>
</message>
但我得到了以下错误结果:
<message xmlns="jabber:client" type="error" to="154191@im.xx.cn/1e840910" from="groupname@conference.im.xx.cn">
<x xmlns="jabber:x:event">
<offline/>
<delivered/>
<displayed/>
<composing/>
</x>
<body><Message FontName='宋体' FontSize='200' FontColr='0' FontBold='0'>asdf</Message></body>
<error code="406" type="modify">
<not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></not-acceptable>
</error>
</message>
发布于 2014-03-14 02:21:22
我自己解决了这个问题。
你得先把XMPPPresence送到那个聊天室。
https://stackoverflow.com/questions/22368243
复制相似问题