有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何在Openfire上接收邮件传递收据?

如何在Openfire服务器上接收邮件送达收据

我希望收到下列国家的确认书:

  1. Openfire服务器收到消息时
  2. 当接收方客户端接收到消息时
  3. 当接收者已阅读消息时

简而言之,我想实现类似于Whatsapp的挂起、单勾号、双勾号、蓝色双勾号等功能

我知道,XMPP确实支持这个特性。[XEP-0184]

经过多次搜索,我了解到Openfire不支持XEP-0184。 Openfire社区已关闭问题OF-434,并将其标记为“无法修复”

我还可以如何实现这一点?我不想迁移到其他服务器

在OPENFIRE上实现消息传递接收的替代解决方案是什么


共 (2) 个答案

  1. # 1 楼答案

    如果仔细阅读您提到的Openfire问题,您可能会注意到the last comment of the issue gives the reason it was closed as "Won't Fix"

    XEP-0184 has nothing to do with the server.

    It is purely a client to client protocol and is well documented as to what that means with regards to not receiving receipts for message due to issues that may arise due to the server. There is nothing for the server to implement with this specification so I am closing it.

    此外,XEP-184仅描述了交付接收的机制。它不指定服务器收到消息(“确认接收”)或用户已阅读消息时的通知

    服务器可以通过XEP-198流管理来确认收到的节,更详细的收据可以通过XEP-333聊天标记来完成。只有XEP-198需要服务器支持,另外两个XEP-184和XEP-333是纯客户端XEP

  2. # 2 楼答案

    正如在Flow's answer中所暗示的,OpenFire实际上支持XEP-0184,从这个意义上讲,它做了所有需要做的事情,以使XMPP客户端能够使用该协议。这涵盖了列表中的第2点(当接收方客户端收到消息时)

    对于第1点(当Openfire服务器接收到消息时),您需要服务器支持XEP-0198 (Stream Management)。不幸的是,Openfire doesn't support XEP-198 yet