Hello,
I am not receiving any incoming ‘Presence’ packets using a packet listener and a subscription mode of ‘manual’. Here’s a snippet of code:
xmppConnection = new XMPPConnection(config);
xmppConnection.getRoster().setSubscriptionMode(SubscriptionMode.manual);
xmppConnection.addPacketListener(this, new AndFilter(new PacketTypeFilter(Message.class), new PacketTypeFilter(Presence.class)));
xmppConnection.connect();
@Override
processPacket(Packet packet){
System.out.println(packet);
}
I then subscribe to this user (using a different endpoint and name). I would expect to see the ‘subscribe’ Presence packet. Any ideas what I’m doing wrong?
Thanks,
Matt