RTCClient :您必须登录才能使用聊天 API

问题描述

调用下面的代码以使用 QuickBlox 开始视频通话,但即使在调用登录 API 后仍出现“您必须登录才能使用聊天 API”错误

        //Authorise user/Create session
    QBRequest.logIn(withUserLogin: userDef.value(forKey: "userID") as! String,password: ConstantObjectFile.quickBloxPassWord,successBlock: { [self] (response,user) in
        print(response)
        print(user)

        //Initiate call
        let idd = "125914156"//self.contactListArray[sender.tag].following_user_id
        let myNumber = Int(idd)!
        let opponentsIDs = [myNumber]
        let newSession = QBRTcclient.instance().createNewSession(withOpponents: opponentsIDs as [NSNumber],with: .video)
        // userInfo - the custom user information dictionary for the call. May be nil.



        let userInfo = ["key":"value"] // optional
        newSession.startCall(userInfo)

    },errorBlock: { (response) in
        print(response)
    })

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)