title: XMPPFramework/iOS issue: send and receive subscription
body: <p>I have a challenge with XMPPFramework today...</p>
  
  <p>I've configured ejabberd correctly: server is up and running and registering users correctly by in-band registration.</p>
  
  <p>But when I try to send a subscription request from one device, the second one can't recieve the presence for the first one. Here's the code I use on the first device to subscribe to a user, as documented:</p>
  
  <pre><code>[[[self appDelegate] xmppRoster] addUser:userJID withNickname:nickname groups:nil subscribeToPresence:YES];
  </code></pre>
  
  <p>And if everything goes ok, the second device must fire the delegate method:</p>
  
  <pre><code>- (void)xmppRoster:(XMPPRoster *)sender didReceiveBuddyRequest:(XMPPPresence *)presence
  </code></pre>
  
  <p>The problem is that this delegate method is never fired.
  The server creates the new contact for the user, I can see it on ejabberd web administrator, but the subscription type is set to none.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Well, it seems that I was forgetting to include the hostname into the JID. Now, the delegates for XMPPRoster are not being called, but I can see on ejabberd that the request is not 'none' but 'both' and pending validation.</p>
  
  <p>Can't imagine why the XMPPRoster delegates are not firing... it seems that ejabberd server don't send the proper notification when a user receives a new subscription request...</p>