xmpp - ProcessMessage function is not workin in smackapi -
i trying use smack api provide chat functionality between 2 different projects. both side able send message. due problem not able receive message on both side. think process-message function not working properly. how make work properly.
my xmppconnection.debug_enabled = true;
working properly, can see message sent , received via google talk. can process received message..thank in advance...
public void processmessage(chat chat, message message) { if (message.gettype() == message.type.chat){ system.out.println(chat.getparticipant() + " says:" + message.getbody()); string cmdmsg = message.getbody(); system.out.println(cmdmsg); }
Comments
Post a Comment