【发布时间】:2018-06-19 06:24:26
【问题描述】:
我在我的 iPhone 应用程序中使用 twilio 聊天 sdk,在 twilio 网站上我已经确定了角色权限 editChannelAttributes 对于创建者来说是 true。并尝试设置像
这样的属性 TwilioChatHelper.sharedInstance.selectedChannel?.setAttributes(attr, completion: { (result) in
print(result?.isSuccessful() ?? "Not able to set attributes")
})
但结果出错
The operation couldn’t be completed. (signal.sdk.domain.error error 102.)
请建议我缺少什么。
【问题讨论】:
-
检查应用名称和其他参数是否与应用plist匹配。
-
感谢@MAhipalSingh,但我认为如果这些细节不正确,那么聊天也将无法正常工作,创建频道,聊天工作正常,仅在设置频道属性时出现问题。
标签: ios twilio twilio-api