Note that there are some explanatory texts on larger screens.

plurals
  1. POXMPP chatting not working between Android and iOS devices?
    primarykey
    data
    text
    <p>I am developing an XMPP chat application on both Android and iOS.</p> <p>Chatting is working fine between iPhone simulator and iOS device. It's also working between Android emulator and Android device. However, it is not working between android device and iOS device.</p> <p>Can any one please suggest to me what I could be doing wrong?</p> <p>Thanks in advance..</p> <p>Update:</p> <p>Messages are coming from Android device to iOS device, but not from iOS to android.</p> <p>I used this for Android:</p> <pre><code>ConnectionConfiguration connConfig = new ConnectionConfiguration(testHost,portNumber); connection = new XMPPConnection(connConfig); connConfig.setSASLAuthenticationEnabled(true); </code></pre> <p>I used this for iOS:</p> <pre><code>XMPPJID *jid=[XMPPJID jidWithString:loginDetails.username]; password=loginDetails.password; [[self xmppStream] setMyJID:jid]; NSError *error; if (![[self xmppStream] connect:&amp;error]) { NSLog(@"Error connecting: %@", error); return NO; } return YES; if (allowSelfSignedCertificates) { [settings setObject:[NSNumber numberWithBool:YES] forKey:(NSString *)kCFStreamSSLAllowsAnyRoot]; } if (allowSSLHostNameMismatch) { [settings setObject:[NSNull null] forKey:(NSString *)kCFStreamSSLPeerName]; } else { // Google does things incorrectly (does not conform to RFC). // Because so many people ask questions about this (assume xmpp framework is broken), // I've explicitly added code that shows how other xmpp clients "do the right thing" // when connecting to a google server (gmail, or google apps for domains). NSString *expectedCertName = nil; NSString *serverHostName = [sender hostName]; NSString *virtualHostName = [[sender myJID] domain]; if ([serverHostName isEqualToString:@"talk.google.com"]) { if ([virtualHostName isEqualToString:@"gmail.com"]) expectedCertName = virtualHostName; else expectedCertName = serverHostName; } else { expectedCertName = serverHostName; } [settings setObject:expectedCertName forKey:(NSString *)kCFStreamSSLPeerName]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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