Giter VIP home page Giter VIP logo

Comments (5)

demchenkoalex avatar demchenkoalex commented on September 28, 2024 1

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.

femidof avatar femidof commented on September 28, 2024

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.

demchenkoalex avatar demchenkoalex commented on September 28, 2024

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.

louislamme avatar louislamme commented on September 28, 2024

My solution to update "seen" status:

  1. Store users online status every time they enter the room.
  2. Update "delivered" messages by calling a cloud function or update directly from client.
  3. 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.

giorgio79 avatar giorgio79 commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.