1
连接到我公司的服务器是确定与样品iPhoneXMPP应用从github.com/robbiehanson,然后到身份验证失败:使用XMPP密码验证失败?
- (void)xmppStreamDidConnect:(XMPPStream *)sender{
NSLog(@"connected --->YES");
isOpen = YES;
NSError *error = nil;
[xmppStream authenticateWithPassword:@"password" error:&error];
}
返回错误: 域= XMPPStreamErrorDomain代码= 4“没有找到合适的身份验证方法”的UserInfo = 0x9b61440 {NSLocalizedDescription =没有找到合适的身份验证方法}
而且username
可以nikename或phoneNumber的,不能完全像[email protected]
嗨,ū热解,我有同样的问题 – 2015-05-02 03:48:11
我用** **的Openfire代替。 – nathanwhy 2015-05-02 16:18:04