Receiver Email Not Showing in Firestore Messages Collection
I’m working on a chat application using Flutter and Firebase. I’m trying to save and retrieve messages between users, including the receiver’s email, but the receiver email is not appearing in my Firestore collection. Here is my code:
The argument type ‘Future’ can’t be assigned to the parameter type ‘String’
This is my query
Why are login and logout times the same, and why is user information missing in my Flutter Firebase app?
I am developing a Flutter application using Firebase for authentication and Firestore for storing user data. I am encountering two issues:
How to Fetch and Display Receiver’s Email in Firebase for a Chat Application in Flutter?
I am developing a chat application using Flutter and Firebase. I need to fetch the receiver’s email from Firebase and display it correctly in the chat screen. Additionally, I want to use the receiver’s email when sending messages. However, I am encountering issues with fetching and displaying the receiver’s email. Below are the details of my current implementation:
StateError (Bad state: field “message” does not exist within the DocumentSnapshotPlatform)
I’m working on a chat application in Flutter using Firebase Firestore for storing messages. I’m encountering an error when trying to access the message field from a Firestore document. The error message is:Exception has occurred.
StateError (Bad state: field “message” does not exist within the DocumentSnapshotPlatform)
Pulling from firebase; data being stored in unicode order of values rather then index of array
So I am working on a fitness app in flutter with firebase. I have this “freestyles” workout data structure where I am storing the exerciseIds of the exercises done in that workout. They’re being stored in an array “exerciseIds” where the indices are the order that I want. However, in my attempt to pull and retrieve that data back into my code, it is ordering it in alphanumerical order (or unicode order).
Upload Image to FireStore – Flutter
I already have a way if savinf the users image into a Uint8List, this is an example:
Inconsistent Timestamps and Missing Details in Firestore Upon User Login and Logout
I’m implementing a user authentication and logging system in my Flutter application using Firebase Firestore. However, I’ve encountered two primary issues that I need help resolving:
How to Log User Login and Logout Times in Firestore and Display Them in a Table in Flutter?
I’m working on a Flutter app where I need to track user login and logout times, along with additional user information like full name, ID, and compound location. I want to display this information in a table on a separate screen.
Displaying last seen status of user in Flutter using Firestore timestamps
I’m developing a Flutter application where I need to display the last seen status of a user in the chat page. I’m retrieving the user’s last seen timestamp from Firestore and attempting to format it for display in the app’s AppBar. However, I’m encountering issues with converting the Firestore Timestamp to a DateTime object and subsequently formatting it correctly.