Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在使用Tigase 和 xmpp进行聊天应用程序,一切正常,除了我没有收到第一条离线消息。
例如:有 2 个用户 A 和 B,A 向 B 发送 3 条消息,但 B 处于离线状态(即应用程序处于未运行状态),但是当 B 上线时,他只收到 2 条消息(最后 2 条),总是错过第一条消息.
帮我解决这个问题。
我遇到了类似的问题,在客户端我们无能为力,因为 XMPP(Tigase)服务器会在用户上线时自动返回所有离线消息。Tigase 服务器可能存在一些问题,没有返回第一条消息。因为您将在 - (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message 中收到的所有离线消息,并且可以检查服务器未返回第一条离线消息。