Hello I am making a chat app with XMPPFramework.
I have setup XMPPFramework in my project by referring this link:- http://code.tutsplus.com/tutorials/building-a-jabber-client-for-ios-xmpp-setup--mobile-7190
Code to send message:-
NSXMLElement *body = [NSXMLElement elementWithName:@"body"];
[body setStringValue:messageStr];
NSXMLElement *message = [NSXMLElement elementWithName:@"message"];
[message addAttributeWithName:@"type" stringValue:@"chat"];
[message addAttributeWithName:@"to" stringValue:fnjid];
[message addChild:body];
[self.xmppStream sendElement:message];
This code was working good but now this is not working...method "send Element" is not calling..it is in xmppstream class.
- (void)sendElement:(NSXMLElement *)element
This method called when connection to server but not working only in send messages
self.xmppStream
nil whensendElement:
is not called? – Larme