Chat app using XMPP protocol using gmail server
I am using iPhoneXMPP (xmppframework) code provided by code.google.com.
After entering jid, App received number of users who are online/offline.
And if anyone send message it received but cant send.
I am using below code to send msg but no popup chat displayed on my gmail account....
I do not understand what i did wrong....
NSXMLElement *body = [NSXMLElement elementWithName:@"body"];
[body setStringValue:textvalue];
NSXMLElement *message = [NSXMLElement elementWithName:@"message"];
[message addAttributeWithName:@"type" stringValue:@"chat"];
[message addAttributeWithName:@"to" stringValue:@"[email protected]"];
[message addChild:body];
[[self xmppStream] sendElement:message];
Thanks.....