简体   繁体   中英

Registration Process in XMPP Chat for iPhone

I am implementing a XMPP client for my iPhone App, I ahve completed all the things in (Chatting with other users , showing presence of other users , etc.)

But the one thing for which I am stuck is that , I am unable to get the new user registered from my App. I am using following snippet,

if ([appDelegate.xmppStream supportsInBandRegistration])
        [appDelegate.xmppStream registerWithPassword:txt_Password.text error:nil];

But for this, supportsInBandRegistration method always returns NO and the registerWithPassword: method is never called.

Please provide some help regarding the same.

What server are you using? Some servers support in-band registration even thought they don't send the correct stream:feature according to XEP-0077 . Most of them should give the feature in the disco results however.

In other words, try commenting out your if ([appDelegate.xmppStream supportsInBandRegistration]) and see if it works. If so, you'll need to complain either to your library developer or to your server developer or both.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM