I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message.
Could you tell me
For offline message: You will receive message as below:
Offline Storage Hello
You can parse this XML to get stamp attribute under delay tag. This will give you the time on which it is sent from the sender.
For MAM archived message: You will receive something as below:
hello
You can parse this XML to get id attribute under archived tag. This will give you the epoch time in microseconds when this message was sent from the sender.