Firestore: Document Not Found in Custom Collection Using User ID as Document ID [duplicate]
I manually created documents in the loginUser
collection, using the user’s UID as the document ID.
Flutter + Firebase: “[cloud_firestore/unavailable] The service is currently unavailable” error on Android
Problem Description In my Flutter app using Firebase, many Android users are encountering the following error: [cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff. This error typically occurs with the first (or one of the first) Firebase get queries in […]
how can i solve following error in my firebase app after clicking on verify otp that error is occures
Error:
I/flutter (23968): Error verifying OTP: type ‘List<Object?>’ is not a subtype of type ‘PigeonUserDetails?’ in type cast
Firestore Error: Document Not Found Despite Read Permissions
I’m facing an issue with Firestore in my Flutter application. I’m trying to access a document in my “users” collection using the recipient’s userID, but I keep getting an error [cloud_firestore/not-found] Some requested document was not found. even though I’ve allowed read and write access in my Firestore rules.
FLUTTER – TypeError: Class constructor IndexedDBLocalPersistence cannot be invoked without ‘new’
I have been initializing Firebase like this since I started by following this flutter documentation, but for some reason, this throws an error in the debugger, as follows:
How do I get a confirmation when the email is updated so that I can save the new email into Firebase Firestore?
I am updating my current login email using verifyBeforeUpdateEmail() function from firebase authentication, which successfully updates the email (in the Authentication) upon user verification of the email link received in their inbox. So my task is once that is done, I want to update my firebase firestore with the new email. How is this possible – as I only want to update the firestore only when the user has succesffully verified it.
The authStateChange is not updating the authentication state, unless I resart the app deugging session, causing previous user data to be displayed
I am using authStateChange as a stream in my Splash Screen to check for any changes in the authentication state of my app, but after signing out using Firebase Auth signOut build in function, when I sign in back with a different user, it still shows the data of the previous user, fetching it from the firestore. But when I hot restart the app debugging session, it starts displaying the data of the current signed in user. I have printed the user id many times in the StreamBuilder of the authStateChange, and unless I restart the app, it prints the previous users userID. What could be the issue that forces me to restart the app to get correct data?