I am new to smack and openfire. I am trying to fetch chat messages of users using the smack api. I knew that this support has been implemented in Smack 4.2.0 but i am not able to find appropriate api for that. Can anybody please help me with that.
The Smack API you are looking for is called MAM : XEP-0313: Message Archive Management. Of course you need a server which has support for this, like the latest version (4.1.3) of OpenFire. Look for the MamManager (Smack 4.2.0 API)