我使用 flutter 和 firestore 制作了消息传递应用程序。我想添加一个像现有消息应用程序一样的阅读功能,但我不知道该怎么做。
当您打开消息时,获取文档 ID,转到您的收藏并将 read 设置为 true。
await Firestore.instance.collection('messages').document(messageId).update({ read: true});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句