How to get timestamp of incoming xmpp message?

后端 未结 6 1920
梦谈多话
梦谈多话 2021-02-04 05:05

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

6条回答
  •  既然无缘
    2021-02-04 05:59

    With smack 4.2.0-rc2-SNAPSHOT version it's easy to access,

    DelayInformation delayInformation = forwarded.getDelayInformation();
    delayInformation.getStamp().getTime();
    

提交回复
热议问题