Fetch XMPP Open Fire Private Chat History and Message Archiving in Android -


i working on xmpp open fire able send , receive message in private chat , in room , able chat history of room chat not able message history of private chat , wants achieve message archiving in private chat , room chat android.

private messaging archives in xmpp

private chat history not stored default on xmpp servers. private messages not yet delivered client stored "offline messages", if enabled on server. client reconnects, these automatically delivered , purged. client receive them normal messages, except contain timestamp of initial transmission.

for more persistent approach, there xep-0136: message archiving never used, or better (and easier implement) xep-0313: message archive management.

server support xep-0313

for openfire, there a patch attached of-862 has been merged in september 2015 , part of 4.0 release.

there support in ejabberd , prosody, if take recent enough version.

in either case need enable archiving account on server.

client support xep-0313

depending on client library use, might have support already, or need extend appropriate xml extension code.

if using smack (the used android xmpp library), not yet supported out-of-the-box, smack maintainer has local branch mam support, , mam incorporated next release.

you need instanciate mammanager connection, , can obtain archive content using queryarchive() method. in mam branch, there no built-in mechanism configure account archiving preferences, suppose fixed in next release.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -