My FlutterFlow app, currently in development, was working fine but recently stopped redirecting users after sign-in. Now, it only redirects to the logged-in screen after a page refresh in the Test Mode section. Additionally, Firestore data is not loading, and I'm seeing specific errors in the debug console.
Environment:
Platform: FlutterFlow
Authentication: Firebase Authentication
Database: Firebase Firestore
Error Messages:
webchannel_connection.ts:266 GET https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel?... net::ERR_ABORTED 400 (Bad Request)
webchannel_connection.ts:266 GET https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/... 400 (Bad Request)
Steps Taken:
Verified that Firebase Authentication redirects to the correct page upon sign-in.
Confirmed the app correctly loads the logged-in screen after a page refresh in Test Mode.
Checked Firestore database rules and configurations to ensure correct permissions.
Symptoms:
Redirection: Users are not automatically redirected to the logged-in screen after signing in unless the page is refreshed.
Firestore Data: Firestore data does not load, and debug console shows
400 (Bad Request)
errors from Firestore API requests.
Questions:
Could the
400 (Bad Request)
errors in the console indicate a misconfiguration in Firestore or an authentication issue?What could prevent automatic redirection after sign-in but still allow access upon page refresh?
Are there any specific configurations or steps in FlutterFlow and Firebase that I should check to resolve these issues?
Additional Context: I recently made updates to my Firebase Firestore rules. Could this be affecting how Firestore data is loaded post-login?