How to get Openfire chat history on Android device with aSmack?

后端 未结 3 881
闹比i
闹比i 2020-12-17 20:02

I am developing a chatting application, where user will chats with one of the domain expert\'s group member. user uses my android app and domain expert uses spark web for ch

3条回答
  •  感动是毒
    2020-12-17 20:23

    You can get groupchat history by using following code:

    DiscussionHistory history = new DiscussionHistory();
    history.setMaxStanzas(0);
    
    
    multiUserChat.join("username", "password", history, SmackConfiguration.getPacketReplyTimeout());
    

提交回复
热议问题