Question

can we call authentication mechanism any where out of the below function?

- (void)xmppStreamDidConnect:(XMPPStream *)sender

I tried to authenticate a user from other controllers but it returns an error. I'm using xmpp framework to send an IQ to register a user. When xmpp stream is connected it authenticates a user anonymously which enables me to send an IQ to register a user and user gets registered. However, when it gets registered I want to authenticate the registered user again but this time not anonymously so that it can send its presence and can become online with his own name. Please suggest a solution, Thanks.

Was it helpful?

Solution

It is impossible to reuse existing xmpp connection after registration, you should start a new connection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top