At first i want to tell you that you can use robbiehanson code i would
recommend this to you.. Because he updates the code time to time and
supportive
On 8/14/13, avaan <
shan...@gmail.com> wrote:
> hi,
>
> I am using the code in link
> '
https://github.com/funkyboy/Building-a-Jabber-client-for-iOS'.
>
> And I have initially has used my server name in below code,
>
> if ([presenceType isEqualToString:@"available"]) {
>
> [_chatDelegate newBuddyOnline:[NSString stringWithFormat:@"%@@%@",
> presenceFromUser, @"
comspots2.no-ip.biz "]];
>
> } else if ([presenceType isEqualToString:@"unavailable"]) {
>
> [_chatDelegate buddyWentOffline:[NSString stringWithFormat:@"%@@%@",
> presenceFromUser, @"
comspots2.no-ip.biz "]];
>
> }
>
>
> But still it did not worked for me.
>
>
> If you have the sample code please share with me. I am struggling a lot to
> connect to OpenFire server :(
>
> On Wednesday, August 14, 2013 2:48:16 PM UTC+3, obaid wrote:
>>
>> Did you checked it?
>>
>>
>> On Wed, Aug 14, 2013 at 2:12 PM, Obaid Shaik
>> <
blue...@gmail.com<javascript:>
>>> <javascript:>>wrote:
>>>>>>>>>>>>
http://i39.tinypic.com/feg9z8.********png<
http://i39.tinypic.com/feg9z8.png>
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you, please help me out to solve this issue.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Mon, Apr 16, 2012 at 3:08 PM, obaid jawad
>>>>>>>>>>>> <
blue...@gmail.com>wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi, An update I have run wireshard on my mac to trace the data
>>>>>>>>>>>>>
>>>>>>>>>>>>> packets are sent to the server side on not, that is OpenFire
>>>>>>>>>>>>> server and I
>>>>>>>>>>>>> see that the iOS chat client sdk, is able to connect to the
>>>>>>>>>>>>> Openfire
>>>>>>>>>>>>> server, but it could not authenticate the user. Here is the
>>>>>>>>>>>>> description in
>>>>>>>>>>>>> the image, It is the screen shot for it.
>>>>>>>>>>>>>
http://i41.tinypic.com/**344xdfp******.png<
http://i41.tinypic.com/344xdfp.png>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, Apr 16, 2012 at 1:09 PM, obaid jawad
>>>>>>>>>>>>> <
blue...@gmail.com
>>>>>>>>>>>>> > wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I forgot to mention as I debug it I have also put the
>>>>>>>>>>>>>> breakpoints on this method and the compiler comes to this
>>>>>>>>>>>>>> method after I
>>>>>>>>>>>>>> press login
>>>>>>>>>>>>>> - (void)xmppStreamDidConnect:(**XM******PPStream *)sender {
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> // connection to the server successful
>>>>>>>>>>>>>> isOpen = YES;
>>>>>>>>>>>>>> // NSLog(@"hi");
>>>>>>>>>>>>>> NSError *error = nil;
>>>>>>>>>>>>>> [[self xmppStream]
>>>>>>>>>>>>>> authenticateWithPassword:**passw******ord
>>>>>>>>>>>>>> error:&error];
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Mon, Apr 16, 2012 at 1:06 PM, obaid jawad <
>>>>>>>>>>>>>>
blue...@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thank you for your valuable response, but yes I tried with
>>>>>>>>>>>>>>> this and also debug it but I'm not able to connect to the
>>>>>>>>>>>>>>> server, In other
>>>>>>>>>>>>>>> I have installed one packet tracer to trace whether the
>>>>>>>>>>>>>>> packets are sent to
>>>>>>>>>>>>>>> the server IP or not, so I have seen in it that it is getting
>>>>>>>>>>>>>>> response it
>>>>>>>>>>>>>>> initates as destination to the server, However I'm not
>>>>>>>>>>>>>>> visible to other and
>>>>>>>>>>>>>>> also I'm not able to view my buddy list.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> To debug it I have put the breakpoints at
>>>>>>>>>>>>>>> - (void)**xmppStreamDidAuthenticat******e:(**XMPPStream
>>>>>>>>>>>>>>> *)sender {
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> // authentication successful
>>>>>>>>>>>>>>> [self goOnline];
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> and on
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> - (void)xmppStream:(XMPPStream *)sender
>>>>>>>>>>>>>>> didReceivePresence:(*
>>>>>>>>>>>>>>> *XMPPPresen******ce *)presence {
>>>>>>>>>>>>>>>> isEqualToString:@"unavailable"*****
>>>>>>>>>>>>>>>> ***]) {
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> [_chatDelegate buddyWentOffline:[NSString
>>>>>>>>>>>>>>>> stringWithFormat:@"%@@%@",
>>>>>>>>>>>>>>>> presenceFromUser, @"50.18.175.235"]];
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I was setting the local server as obaid-macbook.local and
>>>>>>>>>>>>>>>> google talk
>>>>>>>>>>>>>>>> as
m.google.com in the place of "50.18.175.235" in the
>>>>>>>>>>>>>>>> above code,
>>>>>>>>>>>>>>>> however I'm unable to connect to the openfire server that
>>>>>>>>>>>>>>>> 50.18.175.235.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Google Groups "XMPPFramework" group.
>>>>>>>>>>>>>>>> To post to this group, send email to
>>>>>>>>>>>>>>>>
xmppfr...@googlegroups.com**.
>>>>>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>>>>>> xmppframewor...@**googlegroups.**c****om.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> For more options, visit this group at
>>>>>>>>>>>>>>>>
http://groups.google.com/**group******/xmppframework?hl=en<
http://groups.google.com/group/xmppframework?hl=en>
>>>>>>>>>>>>>>>> .
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Google Groups "XMPPFramework" group.
>>>>>>>>>>>>>>>> To post to this group, send email to
>>>>>>>>>>>>>>>>
xmppfr...@googlegroups.com**.
>>>>>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>>>>>> xmppframewor...@**googlegroups.**c****om.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> For more options, visit this group at
>>>>>>>>>>>>>>>>
http://groups.google.com/**group******/xmppframework?hl=en<
http://groups.google.com/group/xmppframework?hl=en>
>>>>>>>>>>>>>>>> .
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>>
>>>>>>>>>> Groups "XMPPFramework" group.
>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>>
>>>>>>>>>> send an email to xmppframewor...@**googlegroups.**c**om.
>>>>>>>>>>
>>>>>>>>>> To post to this group, send email to
>>>>>>>>>>
xmppfr...@googlegroups.com**.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>
https://groups.google.com/d/**ms****gid/xmppframework/6c1b47f7-**
>>>>>>>>>> bde****f-4cb9-a253-2ed1d8dc007c%**40goo****
glegroups.com<
https://groups.google.com/d/msgid/xmppframework/6c1b47f7-bdef-4cb9-a253-2ed1d8dc007c%40googlegroups.com>
>>>>>>>>>> .
>>>>>>>>>> For more options, visit
https://groups.google.com/**grou****
>>>>>>>>>> ps/opt_out <
https://groups.google.com/groups/opt_out>.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "XMPPFramework" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to xmppframewor...@**googlegroups.**com.
>>>>>>>> To post to this group, send email to
xmppfr...@googlegroups.com**.
>>>>>>>> To view this discussion on the web visit
>>>>>>>>
https://groups.google.com/d/**ms**gid/xmppframework/4f048a10-**e4c**
>>>>>>>> 6-40d1-99f2-d36635b29cea%**40goo**
glegroups.com<
https://groups.google.com/d/msgid/xmppframework/4f048a10-e4c6-40d1-99f2-d36635b29cea%40googlegroups.com>
>>>>>>>> .
>>>>>>>>
>>>>>>>> For more options, visit
>>>>>>>>
https://groups.google.com/**grou**ps/opt_out<
https://groups.google.com/groups/opt_out>
>>>>>>>> .
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "XMPPFramework" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>>>
>>>>>> an email to xmppframewor...@**
googlegroups.com.
>>>>>> To post to this group, send email to
xmppfr...@googlegroups.com**.
>>>>>> To view this discussion on the web visit
>>>>>>
https://groups.google.com/d/*
>>>>>> *msgid/xmppframework/ed0cd302-**c9bd-4b15-b0f7-0a70cfb14127%**
>>>>>>
40googlegroups.com<
https://groups.google.com/d/msgid/xmppframework/ed0cd302-c9bd-4b15-b0f7-0a70cfb14127%40googlegroups.com>
>>>>>> .
>>>>>>
>>>>>> For more options, visit
>>>>>>
https://groups.google.com/**groups/opt_out<
https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "XMPPFramework" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to
xmppframewor...@googlegroups.com <javascript:>.
>>>> To post to this group, send email to
>>>>
xmppfr...@googlegroups.com<javascript:>
>>>> .
>>>> To view this discussion on the web visit
>>>>
https://groups.google.com/d/msgid/xmppframework/293386ef-7fb4-4401-b6b2-eb2250d14410%40googlegroups.com
>>>> .
>
https://groups.google.com/d/msgid/xmppframework/b2ecc5de-17ee-40da-8ed0-3f1045af299e%40googlegroups.com.