ios - 直接深度链接到特定的聊天或消息?

标签 ios getstream-io

这适用于 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/

相关文章:

ios - 识别用户是否在 iOS 6 设置中定义了 native facebook 帐户

javascript - 使用 getstream 实时评论

getstream-io - 汇总提要,删除 getstream 中的重复项

ios - 根据路径属性为 CAShapeLayer 的子类自定义属性设置动画

getstream-io - 为 getstream feed 生成访问 token ?

javascript - 您如何建议管理事件对象的喜欢/不喜欢?

javascript - GetStream - 发送分析参与时出错

android - 使用适用于 iO、Android 和 Windows Phone 的 Xamarin

ios - 重置 uicollectionview 的 indexPath

ios - 如何在 iOS 中更改 Chirp 的 SDK 状态?