Get XMPP Chat History OpenFire

前端 未结 1 484
太阳男子
太阳男子 2021-01-25 06:21

I am trying to implement a chat application using XMPPFramework in iOS, using OpenFire server. My chat is working fine, I am trying to retrieve chat history from server. Ofcours

1条回答
  •  后悔当初
    2021-01-25 06:52

    change urn:xmpp:archive to urn:xmpp:archive:auto

    I had the same issue and determined this by running a discovery request: http://xmpp.org/extensions/xep-0136.html#disco

    I sent this IQ:

    
      
    
    

    My Openfire server with the Monitoring plugin enabled returned this result:

    
       
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
       
    
    

    You can see that Automatic Archiving (urn:xmpp:archive:auto) and Archive Management (urn:xmpp:archive:manage) are supported, but Manual Archiving (urn:xmpp:archive:manual) and Archiving Preferences (urn:xmpp:archive:pref) are not.

    XEP-0313 is also supported (listed as urn:xmpp:mam:0) and can retrieve archived messages: http://xmpp.org/extensions/xep-0313.html

    0 讨论(0)
提交回复
热议问题