XMPPManager icon indicating copy to clipboard operation
XMPPManager copied to clipboard

Receiving Messages Not Working

Open EvaniRam opened this issue 11 years ago • 2 comments

I am able to send message to XMPP server(Openfire) but unable to receive any messages in ios app .This function is not being called :

  • (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message {

    NSString *msg = [[message elementForName:@"body"] stringValue]; NSString *from = [[message attributeForName:@"from"] stringValue];

    NSMutableDictionary *m = [[NSMutableDictionary alloc] init]; [m setObject:msg forKey:@"msg"]; [m setObject:from forKey:@"sender"];

    [_messageDelegate newMessageReceived:m]; //[m release];

}

EvaniRam avatar Nov 04 '14 12:11 EvaniRam

您好,我的iOS端,提示验证失败,提示信息:2016-04-26 18:33:35.458 XMPPManager[45954:3352011] -- 验证登录错误: 使用的是Openfire搭建,spark上可以正常登陆,但是在您的demo里面可以注册,但是登陆不了

L05t avatar Apr 26 '16 10:04 L05t

@L05t 检查一下用户名,服务器的接口ip信息;

cocoajin avatar Apr 28 '16 09:04 cocoajin