如何在 Quickblox 中的两个用户之间创建会话?
How to create session between two users in Quickblox?
我目前正在使用 Quickblox 在我的应用程序中使用聊天模块。
我能够成功登录和检索用户,但是当我想与其他用户连接时出现错误。
我在文档中找到代码
[[QBChat instance] connectWithUser:ReceiverUSer completion:^(NSError * error )
{
NSLog(@"%@",error);
}];
我收到一个错误:
Error Domain=com.quickblox.chat Code=401 "Password not verified"
UserInfo=0x7fe0e9dc7440 {NSLocalizedDescription=Password not verified} 2015-11-19
16:15:35.998 iosChat[20966:132723]
实施聊天的下一步应该是什么?
此方法用于将您自己连接到聊天而不是您的对手。此外,为了使用此方法连接,您的 QBUUser 实例必须将有效密码设置为密码 属性.
基本上,您需要将自己连接到聊天,然后才开始创建对话和发送消息。
我目前正在使用 Quickblox 在我的应用程序中使用聊天模块。 我能够成功登录和检索用户,但是当我想与其他用户连接时出现错误。
我在文档中找到代码
[[QBChat instance] connectWithUser:ReceiverUSer completion:^(NSError * error )
{
NSLog(@"%@",error);
}];
我收到一个错误:
Error Domain=com.quickblox.chat Code=401 "Password not verified" UserInfo=0x7fe0e9dc7440 {NSLocalizedDescription=Password not verified} 2015-11-19 16:15:35.998 iosChat[20966:132723]
实施聊天的下一步应该是什么?
此方法用于将您自己连接到聊天而不是您的对手。此外,为了使用此方法连接,您的 QBUUser 实例必须将有效密码设置为密码 属性.
基本上,您需要将自己连接到聊天,然后才开始创建对话和发送消息。