I’m developing on iOS and using Robbie Hanson XMPPFramework. The method didReceiveMessage is never called.
I did successfully connect, and sent ‘presence’ (confirmed by using NSLog. That can be confirmed by the Openfire admin panel which shows the user as green and connected.
XMPPPresence* presence = [XMPPPresence presence]; // type="available" is implicit
[[self xmppStream] sendElement:presence];
Further, I received didReceiveIQ calls. I do not know what is IQ and do I need to handle it?
The most important thing is do I make didReceiveMessage get called. Thanks!
The didReceiveMessage delegate will only be called if your client receives a message stanza like this:
This stanza is received if other XMPP clients send you a chat message. If your didReceiveIQ is already being called then we can assume that we have setup our delegates properly.