菜鸟教程小白 发表于 2022-12-12 10:39:29

ios - 在 iOS XMPP 聊天应用程序中读取回执


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

<p>xMPP 中是否有任何协议(protocol)可用于此功能?</p>

<p>如果发件人发送了消息,并且如果它成功传递,则有一个 xmpp 协议(protocol)。从链接中得到它:
<a href="https://stackoverflow.com/questions/20852336/how-to-get-the-message-delivary-status-using-xmpp-framework?rq=1" rel="noreferrer noopener nofollow">How to get the message delivary status using XMPP framework</a> </p>

<p>以下是获取交货报告的代码。</p>

<pre><code>XMPPMessageDeliveryReceipts* xmppMessageDeliveryRecipts = [ initWithDispatchQueue:dispatch_get_main_queue()];
xmppMessageDeliveryRecipts.autoSendMessageDeliveryReceipts = YES;
xmppMessageDeliveryRecipts.autoSendMessageDeliveryRequests = YES;
;
</code></pre>

<p>但我想收到已读回执。请帮帮我。 </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p> <a href="http://xmpp.org/extensions/xep-0085.html" rel="noreferrer noopener nofollow">XEP-0085</a> “事件”聊天状态基本上用作“已读回执”</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在 iOS XMPP 聊天应用程序中读取回执,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/24550065/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/24550065/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在 iOS XMPP 聊天应用程序中读取回执