I am using asmack library for an XMPP chat application. I have some issues in receiving few custom IQ packets.
This is my PacketListener
code :
PacketTypeFilter filter = new PacketTypeFilter(Packet.class);
connection.addPacketListener(new PacketListener() {
@Override
public void processPacket(Packet packet) {
Log.i("PacketListener : ", "Received Packet in General : "
+ packet.toXML());
}
}, filter);
It receives some IQ packets, but doesn't receive some other IQ packets. But, the asmack library is able to receive and print all the IQ packets in the Logcat under the Tag "SMACK" and a prefix as "RCV (1): ".
Any suggestions to receive all the IQ packets inside PacketListener
?
Please, let me know if something is not clear in the question by adding comments.