我想在iOS中使用OpenFire服務器實現使用XMPPFramework的聊天應用程序。我的聊天工作正常,我試圖從服務器檢索聊天記錄。當然,我在服務器上啓用了消息存檔功能。這是我要發送的請求獲取XMPP聊天記錄OpenFire
<iq type="get">
<retrieve xmlns="urn:xmpp:archive" with="[email protected]">
<set xmlns="http://jabber.org/protocol/rsm">
<max>100</max>
</set>
</retrieve>
</iq>
這是我得到的迴應。
<iq xmlns="jabber:client" type="error" to="[email protected]/6i0qoo9tek">
<retrieve xmlns="urn:xmpp:archive" with="[email protected]">
<set xmlns="http://jabber.org/protocol/rsm">
<max>100</max>
</set>
</retrieve>
<error code="503" type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">
</service-unavailable>
</error>
</iq>
我已經完成了所有的解決方案,我可以在互聯網上找到了,但無法找到一個令人滿意的解決方案
你得到任何解決方案?或者你可以請看看這個問題http://stackoverflow.com/questions/41503601/getting-error-while-fetching-archived-messagesxep-0313-mam-chat-history-from – Chitrang
服務不可用意味着您需要安裝打開消防插入到明火服務器 –
@Chitrang不,我沒有找到任何解決方案。 –