【问题标题】:Read receipt in iOS XMPP chat application在 iOS XMPP 聊天应用程序中读取回执
【发布时间】:2014-08-24 08:42:19
【问题描述】:

我想实现“阅读消息功能”,如 Facebook、iMessage、WhatsApp 等。 如果接收者已阅读该消息,则发送者将收到另一人已阅读该消息的通知。

xMPP 中是否有任何协议可用于此功能?

如果发件人发送了消息,并且如果它成功传递,则有一个 xmpp 协议。从链接中得到它: How to get the message delivary status using XMPP framework

以下是获取交货报告的代码。

XMPPMessageDeliveryReceipts* xmppMessageDeliveryRecipts = [[XMPPMessageDeliveryReceipts alloc] initWithDispatchQueue:dispatch_get_main_queue()];
xmppMessageDeliveryRecipts.autoSendMessageDeliveryReceipts = YES;
xmppMessageDeliveryRecipts.autoSendMessageDeliveryRequests = YES;
[xmppMessageDeliveryRecipts activate:self.xmppStream];

但我想收到已读回执。请帮帮我。

【问题讨论】:

    标签: ios xmpp


    【解决方案1】:

    XEP-0085“活动”聊天状态基本上用作“已读回执”

    【讨论】:

    • 对我来说,聊天状态似乎是一个完全独立的功能来阅读收据。
    猜你喜欢
    • 2014-05-04
    • 2023-01-28
    • 2013-01-28
    • 2015-06-14
    • 2011-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-17
    相关资源
    最近更新 更多