QBChat didReceiveMessage is not getting called while receiving a call

ⅰ亾dé卋堺 提交于 2019-12-12 04:54:00

问题


I'm using Quickblox for voice/video call between two devices.
While receiving a voice/video call from an user, I can see the log below,

QBChat/didReceiveMessage: <message xmlns="jabber:client" id="XXX-XXX" to="XXXXX-XXXX@chat.quickblox.com" from="1XXXX20@chat.quickblox.com/Smack" type="qbvideochat_call"><extraParams xmlns=""><callType>1</callType><sessionID>XXXXXXX</sessionID></extraParams></message>

The method, chatDidReceiveCallRequestFromUser is also being called. I can attend the call. But, chatDidReceiveMessage is not getting called.

-(void)chatDidReceiveMessage:(QBChatMessage *)message
{
  NSLog(@"called");
   NSLog(@"message %@",message.description);
}

It's not showing anything in log. I need to check the message for some further process. What might be missing here?

I tried it in both iOs 7.1 and 8.1. Any help would be greatly appreciated.


回答1:


Probably Quickblox mightn't grant access to system messages. Try to use your own QBChatMessage with your custom parameters when calling.



来源:https://stackoverflow.com/questions/26624886/qbchat-didreceivemessage-is-not-getting-called-while-receiving-a-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!