문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top