No video

38.Read or Unread Message Feature | Firestore Firebase | Chat App In Flutter

  Рет қаралды 10,043

Harsh H. Rajpurohit

Harsh H. Rajpurohit

Күн бұрын

In this video, We will provide functionality to message read or not read feature and show double blue ticks for read messages.
Create chatting app similar to whatsapp with Flutter & Firebase.
Next Video:
Previous Video: • 37.Send & Receive Mess...
GitHub Codes: github.com/Har...
Complete Playlist: • Chat App In Flutter & ...
My Learning Journey: • How To Learn Android D...
Free Android (+ Kotlin) Courses 😃:
🎵 Music Player App: • Music Player App In An...
▶️ Video Player App: • Video Player App In An...
🌐 Private Browser App: • Web Browser App Course...
🔒 Firebase Authentication: • Android Authentication...
Free Flutter Courses 😃:
🅵 Flutter 3 (Beginners): • Flutter Tutorial (App ...
💬 Chat App (Firebase): • Chat App In Flutter & ...
Flutter development VS Code in Hindi.
(A Humble Request) 😊
Share Content with One Who is in Need.
Thanks for watching.

Пікірлер: 39
@prasantkumar7693
@prasantkumar7693 11 ай бұрын
thank you so much. it's really helpful for us
@someshsahu4638
@someshsahu4638 Жыл бұрын
nice brother 🙏🏼🙏🏼🙏🏼
@lamaeye5291
@lamaeye5291 Жыл бұрын
Amazing man💫💫
@adilhesenov2962
@adilhesenov2962 Жыл бұрын
super
@fawadslifestyle4980
@fawadslifestyle4980 6 ай бұрын
Bro sender k msgs show nahe ho rahey ? read to update ho raha sub set chl raha but Sender ka jo msg he us k jaga time show ho raha?
@harshRajpurohit
@harshRajpurohit 6 ай бұрын
You might have shown the time in message content by mistake or maybe sending time content in the message, while sending to firebase.
@fawadslifestyle4980
@fawadslifestyle4980 6 ай бұрын
yes i mess up displayed time instead of msg
@ankitpurohit18
@ankitpurohit18 Жыл бұрын
👍👍👍👍👍👍👍
@mahnoor7690
@mahnoor7690 Жыл бұрын
Sir is it mandatory to have two different emulators ? Or it can be done by switching the accounts ?
@harshRajpurohit
@harshRajpurohit Жыл бұрын
Switching the accounts will also work.
@mahnoor7690
@mahnoor7690 Жыл бұрын
@@harshRajpurohit but sir i am facing an error from 36 number video and onward my message is not showing proper read function not working last message error sir please I need help
@shahzaibrizwan1726
@shahzaibrizwan1726 2 ай бұрын
sir message aage piche show ho rahe ha sequence me nai ha
@harshRajpurohit
@harshRajpurohit 2 ай бұрын
Maybe your internet connection is not that stable due to which messages are sent in a different sequence.
@Adarsh_Pradhan
@Adarsh_Pradhan 2 ай бұрын
@@harshRajpurohit i got the solution for it
@Adarsh_Pradhan
@Adarsh_Pradhan 2 ай бұрын
just add these code inside send message funnction in Apis Class
@ShivaPal-ky3xf
@ShivaPal-ky3xf 2 ай бұрын
Blue tick and am pm not showing what to do now brother
@harshRajpurohit
@harshRajpurohit 2 ай бұрын
Try to check if you're using if condition properly and try log when you inside the if and things are updating (i.e. try debug code).
@ShivaPal-ky3xf
@ShivaPal-ky3xf 2 ай бұрын
@@harshRajpurohit blue tick is showing what to do for am pm it is showing only time like 19:15
@harshRajpurohit
@harshRajpurohit 2 ай бұрын
Just call format() function on TimeOfDay instance. Refer below article for more help: stackoverflow.com/questions/61561015/how-to-show-time-in-am-or-pm-format-from-timeofday-with-flutter If you're confused how to convert DatetTme object to TimeOfDay then refer this article: stackoverflow.com/questions/61397143/flutter-how-to-convert-datetime-to-timeofday
@anshumansinha1145
@anshumansinha1145 3 ай бұрын
it's not updating in the firestore.
@harshRajpurohit
@harshRajpurohit 3 ай бұрын
Does it show any logs or error in the debug console.
@anshumansinha1145
@anshumansinha1145 3 ай бұрын
@@harshRajpurohit it did... anyways, I used chatgpt's code. it does the work perfectly Thanks anyways :)
@raoasad1599
@raoasad1599 Жыл бұрын
Sir read show nai ho raha . Sir need your help
@harshRajpurohit
@harshRajpurohit Жыл бұрын
Okay tell me.
@mustafaturgut9930
@mustafaturgut9930 Жыл бұрын
why you mixing english and india ??????
@harshRajpurohit
@harshRajpurohit Жыл бұрын
In India, Hindi and English are always mixed. We enjoy it.
@user-mb5rg9ys5f
@user-mb5rg9ys5f 7 ай бұрын
Bro Its not updating in the firestore (read) 💔💔💔💔💔💔💔💔
@harshRajpurohit
@harshRajpurohit 7 ай бұрын
You may have missed something simple. Try copy pasting mine codes for read feature: APIs.dart: github.com/HarshAndroid/WeChat/blob/master/lib/api/apis.dart Message card: github.com/HarshAndroid/WeChat/blob/master/lib/widgets/message_card.dart
@user-mb5rg9ys5f
@user-mb5rg9ys5f 7 ай бұрын
@@harshRajpurohit bro thanks alot it works
@bhushankumar6838
@bhushankumar6838 6 ай бұрын
@@user-mb5rg9ys5f hey could u please help me into this, I m facing this issue.
@lyricalway2769
@lyricalway2769 3 ай бұрын
@@user-mb5rg9ys5f still my didn't worked I have copied the same file
@anshumansinha1145
@anshumansinha1145 3 ай бұрын
what did you do?
@lyricalway2769
@lyricalway2769 3 ай бұрын
E/flutter (25570): W/Firestore(25570): (24.10.3) [WriteStream]: (8391650) Stream closed with status: Status{code=NOT_FOUND, description=No document to update: projects/seniorshieldapp-a65aa/databases/(default)/documents/chats/iz5LjzUQPgey6rzvQJSsnSVji452_N8vL9bKVXDfPzM1ZhcMoMEqYqV32/messages/1714724074878, cause=null}. E/flutter (25570): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [cloud_firestore/not-found] Some requested document was not found. E/flutter (25570): #0 FirebaseFirestoreHostApi.documentReferenceUpdate (package:cloud_firestore_platform_interface/src/pigeon/messages.pigeon.dart:1036:7) E/flutter (25570): E/flutter (25570): #1 MethodChannelDocumentReference.update (package:cloud_firestore_platform_interface/src/method_channel/method_channel_document_reference.dart:55:7) E/flutter (25570): E/flutter (25570): #2 APIs.updateMessageReadStatus (package:seniorshield/api/apis.dart:102:5) E/flutter (25570): E/flutter (25570): Read is not being updated in firebase
@harshRajpurohit
@harshRajpurohit 3 ай бұрын
I think you're trying to read a wrong document which doesn't exist in firebase or maybe your firestore rules need to be updated.
@anshumansinha1145
@anshumansinha1145 3 ай бұрын
same issue with me
@lyricalway2769
@lyricalway2769 3 ай бұрын
@@anshumansinha1145 ​ @anshumansinha1145 do comparasion with the code provided by @harshRajpurohit and do changes. there was a missing .doc(time) things in my code. Thank you
@anshumansinha1145
@anshumansinha1145 3 ай бұрын
@@lyricalway2769 ohkay. thanks
@sohaiburrehman7257
@sohaiburrehman7257 Ай бұрын
@@lyricalway2769 can you send me the your code because i am facing same issues and my app crash
39.Last Message And Time | Firebase Firestore| Chat App In Flutter
15:56
Harsh H. Rajpurohit
Рет қаралды 7 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 32 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 44 М.
Read or Unread Message Count Feature | Chat App
16:04
dbestech
Рет қаралды 7 М.
37.Send & Receive Message | Firebase Firestore | Chat App In Flutter
11:02
Harsh H. Rajpurohit
Рет қаралды 11 М.
I built a chat app in 7 minutes with React & Firebase
8:53
Fireship
Рет қаралды 1,4 МЛН
Database Structure for Messaging Application
10:58
TechMan
Рет қаралды 34 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 167 М.
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 32 МЛН