Hi all,
I've just recently started using FF, and made a lot of progress thanks to the documentation and YT tutorials. That said, I am desperately looking for advice on how to solve an issue with creating collections and documents.
I have a profile page with a submit button. However when I go in test mode as an authenticated user I am unable to see the data stored in Firebase Console or in Flutterflow.
The fields are: first_name, last_name, age, bio. When I test as a completely new user, the user is created in Firestore Console, but the data doesnt appear in the collection.
I created the collection in Flutterflow and have also tried creating it manually in Firebase Console.
Despite my best efforts, the the documents are not created.
My action flow is:
Select Firestore > Create Document. Collection: Set to 'profiles'.
Document ID: empty
firstName: Click Set from Variable, select Widget State, choose firstName.
lastName: Click Set from Variable, select Widget State, choose lastName.
age: Click Set from Variable, select Widget State, choose age. bio:
Click Set from Variable, select Widget State, choose bio.
Rules:
`service cloud.firestore {
match /databases/{database}/documents {
match /profiles/{userId} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
}
}`
I've exhausted all options available to me and hoping someone has encountered this issue. Better yet, the solution is simple and user error.
Thanks so much!