Comments (5)
In the documentation we provide an example for delivered status, but we didn't add the seen
example because it requires a paid plan. We for sure want to add this in the future, it should be done inside cloud functions and may or may not require some additional events from this package. Right now we have some other priorities, but I will leave this one opened in case anyone will want to open a PR.
from flutter_firebase_chat_core.
In the documentation we provide an example for delivered status, but we didn't add the
seen
example because it requires a paid plan. We for sure want to add this in the future, it should be done inside cloud functions and may or may not require some additional events from this package. Right now we have some other priorities, but I will leave this one opened in case anyone will want to open a PR.
Thank you so much for this package, tested the use of the delivered status, and i would like to add that the latency to get the delivered status and especially the last message isn't good. I don't know if I'm the only one with this problem but i was thinking if the plugin could could embed the delivered status instead of cloud firestore to trigger the changes, it could be done from plugin with the frontend in communication with firestore
from flutter_firebase_chat_core.
can you elaborate a bit more please, I don't think I follow :( how frontend will set the delivered status if we are not sure it was actually delivered until server responds it was?
from flutter_firebase_chat_core.
My solution to update "seen" status:
- Store users online status every time they enter the room.
- Update "delivered" messages by calling a cloud function or update directly from client.
- Update the cloud function in example - lookup the user online status in Step 1 and check whether its necessary to update message status from "delivered" to "seen".
I'm not sure it's good way to do so, let me know if you have any better solutions.
from flutter_firebase_chat_core.
Sounds good @louislamme , can you share this cloud function?
Alternatively, if we store the last access time of the user, and the last message time to the user in the chat room meta data, we can compare if last access time by user was before the last message time to the user, and in that case the user has unread message(s). Got this idea from stackoverflow here https://stackoverflow.com/questions/22623879/managing-unread-messages-in-firebase-chat/64674829#comment57522035_22645372
from flutter_firebase_chat_core.
Related Issues (20)
- How can I test the example by making several users? HOT 1
- Block or Unblock a user HOT 1
- Show all room from a specific user id
- testing on a firebase emulator?
- Limit first initial messages then append new messages
- Process for creating group room and allowing others to join unclear. HOT 2
- Add a firebase extension for the rules and cloud functions
- Add option to mixin the chat user to an existing user class HOT 1
- Start new chat messages at the top of the screen? HOT 2
- Set custom location for Firebase Storage so We can setup our own security rules. HOT 2
- How to send SystemMessage? HOT 2
- How to create room for a specific user without using ```FirebaseChatCore.instance.users()``` and ```StreamBuilder()``` HOT 6
- createGroupRoom with specific metadata HOT 1
- [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value. HOT 6
- Rooms list. How is it supposed to look?
- any documentation on how to create the structure the firebase database ? HOT 3
- Where to define App Name HOT 1
- New Message Badge / Notifiication New Unread Message HOT 1
- Debug banner is hiding "+" icon
- Last Message Remove Important Property HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_firebase_chat_core.