Reputation: 1060
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.
Upvotes: 1
Views: 1226
Reputation: 5266
It is impossible to reuse existing xmpp connection after registration, you should start a new connection.
Upvotes: 2