这适用于 iOS:当我有 channel ID 和/或消息 ID 时,您建议使用什么方法从应用程序的其他地方直接深度链接到特定聊天或消息?
最佳答案
我们建议使用 query
通过 id 获取消息/ channel 的函数。
// Fetch a channel by id
let query = ChannelsQuery(filter: .key("id", .equal(to: "channel-id")))
Client.shared.channels(query: query).subscribe(onNext: { (response) in
// handle response
}).disposed(by: disposeBag)
// Fetch a message by id
Client.shared.message(with: "message-id").subscribe(onNext: { (response) in
// handle response
}).disposed(by: disposeBag)
很快我们将发布 2.0,它将支持通常的回调方式。
关于ios - 直接深度链接到特定的聊天或消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60834115/