I've searched a lot on the web but can not get the actual sample source code that helps me get started for Google Chat implementation can also clearly not explain the sample code provided with the XMPP framework, because it has a sample project of a Mac desktop application.
I am able to show all my friends who have been provided with the help of Online / Online / Sample Project (iPhone XPPP) in the XMPPfork, but it also shows how
Please provide me any sample source code so that I can initialize Google Chat in my app.
I'm really stuck in
Thanks in advance
Oki left me and the desktop application of XMPP Framework After looking into some solutions and tried is not 0 & amp; amp; amp; and; = 1) {NSXMLElementK * body = [NSXMLElementK elementWithName: @ "body"]; [Body set string value: messasat]; NSXMLElementK * Message = [NSXMLElementK elementWithName: @ "Message"]; [Message addAttributeWithName: @ "Type" stringValue: @ "Chat"]; [Message addAttributeWithName: @ "" stringValue: [[user jid] complete]]; [Message addChild: body]; [[Self xmppStream] Send aliment: Message]; }
And in the rescue message, I have the code ...
- (zero) xmppStream: (XMPPStream *) Sender did the sender Message: (XMPPMessage *) Message {NSLOG (@ "---------- XMPP stream: The reassign message: ----------"); NSLog (@ "- Z ---% @", [[User Zed] complete); NSLog (@ "- to ----% @", [Message]); // if (! [[[User [jid] complete] is: [message]] returns; // important when chatting with 2 or more .. and receiving 2 or more messages ... ([MessageChatMessageWithBody]) {NSString * msg = [[Message element FORNAME: @ "body"] stringValue]; NSLog (@ "mmmmmmmmmmssssssgggg -% @", message); [Str appendstring: [NSString stringWithFormat: @ "% @ : [Message], msg]] [[chat box set text: str];}} I received the chat using these two methods / I am able to achieve but the problem is that some time The ID of the ID which I have selected from the table view of available online contacts (which we can chat with) does not receive the message, but another person receives the message ..
Cheers !!
Comments
Post a Comment