Note that there are some explanatory texts on larger screens.

plurals
  1. POAfter Registration in XMPP User come OffLine in Openfire
    primarykey
    data
    text
    <p>In my application i Successfully <strong>Registered</strong> the User in <strong>openfire</strong> from the use of <strong>XMPP</strong>. </p> <p>but when i Registered the User for <strong>first time</strong> it is <strong>coming offline</strong>.<br> and I have to Connect it again. </p> <p><strong>After disConnect</strong> and connect again it is working Correct.</p> <p>I don't know why this happen. </p> <p>My Code is </p> <pre><code>-(void)xmppStreamDidConnect:(XMPPStream *)sender { NSLog(@"Did Connected pw:%@",_myTextViewCustom.text); isOpen = YES; NSError *error = nil; [xmppStream authenticateWithPassword:_myTextViewCustom.text error:&amp;error]; } </code></pre> <p><br/></p> <pre><code>-(void)xmppStreamDidRegister:(XMPPStream *)sender { NSLog(@"xmppStreamDidRegister Method"); XMPPPresence *presence = [XMPPPresence presence]; [xmppStream sendElement:presence]; [xmppStream setMyJID:[XMPPJID jidWithString:[NSString stringWithFormat:@"%@@server_Id",_jidTextView.text]]]; NSError *error = nil; if (![xmppStream connectWithTimeout:XMPPStreamTimeoutNone error:&amp;error]) { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"Can't connect to server %@", [error localizedDescription]] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alertView show]; } else { NSLog(@"Connection is in making"); } [self goOnline]; } </code></pre> <p><br/> </p> <pre><code>- (void)goOnline { XMPPPresence *presence = [XMPPPresence presence]; [xmppStream sendElement:presence]; XMPPSystemInputActivityMonitor *activiyMonitor = [[XMPPSystemInputActivityMonitor alloc]init]; activiyMonitor.inactivityTimeInterval = 1; [activiyMonitor addDelegate:self delegateQueue:dispatch_get_main_queue()]; NSLog(@"Active : %d",[activiyMonitor isActive]); UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Successfull!!!" message:[NSString stringWithFormat:@"Connected"] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alertView show]; } </code></pre> <p>Any types of Help will be great.<br> Thank you...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload