Relative Content

Tag Archive for flutterfirebasegoogle-cloud-firestore

Data display the same to every collection created

I created in flutter a fitness app and I am on my profile screen. I want the user to show another data when a new category is created, I will show the issue here : https://imgur.com/a/XiStzun
Here it’s the code for the page where workout schedule appears and all widgets( most essentially because all code doesn’t fit)

Firebase/Flutter: Do I need to keep on checking the app’s authentication state, while some app feature relies on the auth(Firebase) uid?

Brief Insight Hi, good people. Currently, I am building an app with Flutter and Firebase. The app’s database structure is like this >> >>>> Stores (Collection) -> *uid*(firebase generated uid) -> location(Collection) -> *lid*(unique location id) -> items (collection) -> orders (collection) -> transactions (collection) -> customer (collection) -> ….. -> ….. -> etc collections […]

Access FireStore subcollection in Flutter

I have an Flutter chat application.
The structure of FireStore is as below.
chats (collection) > roomId (random generated id, which is a document) > users (collection) > email (email of the user, which is a document) > messages (collection) > messageId (random generated id, which is a document) > the actual chat.

Flutter data miss alignment after retrieve it from firestore

When ‘selectedNumbers’, ‘fRAmount’, ‘sRAmount’ is retrieved from Firestore its not showing correspondently. I attached screenshot how its showing before saved to Firestore and after retrieve. I alos attached screenshot of Firestore.

How to make teams of users in flutter?

I want to create an app note where I need to send notes to another teams, how I can send these notes to a specific team, and how I can add users to this team using flutter and firebase. the note included a text and a file

Cloud Firestore – The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff

I am trying to connect my Flutter project to Firestore, but this error occurred while trying to read and write data: [cloud_firestore] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff. I am currently based in China. But I am using a VPN, and the authentication function works.

Firebase firestore rules do not take name from token from flutter app

Once user login I change the firebase users display name to nickname provided by user and create a doc in that name. But when I try to update the doument it thorws code=PERMISSION_DENIED, description=Missing or insufficient permissions.. If I remove the request.auth.name == userId from the rule it works fine. User display name is saved on firebase becuase when I log out and log back in I get the same user display name.