首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >XMPPFramework -在iOS中发送组聊天消息失败

XMPPFramework -在iOS中发送组聊天消息失败
EN

Stack Overflow用户
提问于 2014-03-13 02:58:45
回答 1查看 1.9K关注 0票数 2

我在iOS中使用iOS。我发出这样的信息:

代码语言:javascript
运行
复制
<message type="groupchat" to="groupname@conference.im.xx.cn">
  <x xmlns="jabber:x:event">
    <offline/>
    <delivered/>
    <displayed/>
    <composing/>
  </x>
  <body>&lt;Message FontName='宋体' FontSize='200' FontColr='0' FontBold='0'&gt;asdf&lt;/Message&gt;</body>
</message>

但我得到了以下错误结果:

代码语言:javascript
运行
复制
<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>&lt;Message FontName='宋体' FontSize='200' FontColr='0' FontBold='0'&gt;asdf&lt;/Message&gt;</body>
  <error code="406" type="modify">
    <not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></not-acceptable>
  </error>
</message>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-03-14 02:21:22

我自己解决了这个问题。

你得先把XMPPPresence送到那个聊天室。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22368243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档