iphoneiosxmppxmppframework

XMPP Framework: Not able to receive my messages


I am working on xmpp framework. I have done most of initial things. I created stream, Connected it and get authenticate. Now I am sending buddy request to another user from my app. App shows presence is sent. When I get roster it shows a entry there. But on other system I am not getting any precence or anything. I tried to send a message message is also not received by other client.

Than I used one id in ichat and send friend request to that id. Wow I am able to see friend request on ichat. I accept request from ichat :( No notification on my app.

If I send message to ichat. Message shown in iChat. but when I send message to my app from ichat.. My app is not getting any delegate called or nothing.

I don't know why this is happening.

I am using a non ARC xmpp framework.

Please guys Please help me. I am badly stucked in it :(

Thanks in Advance.


Solution

  • Have you consider to send presence after get authenticate? If you are authenticate but not sending preence than server will consider you offline and all messages sent to you will be stored on server with delay.

    Send your presence and see the magic. :)