AnsweredAssumed Answered

Message send failed callback?

Question asked by demirhan on Dec 5, 2016
Latest reply on Dec 7, 2016 by Hiren

Hi,

I'm using smack 4.1.9 I simply want to know if my message successfully send to xmpp server or failed.

I send message with this code

try {

     chat.sendMessage(message);

} catch (SmackException.NotConnectedException e) {

     e.printStackTrace();

}

 

I am cathcing only if I am connected to server. How can I listen server if my message sended (Like one tick state in whatsapp) or how can I get error response if there is any error.

Outcomes