-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase + Flutter + Web Having No Data #2755
Comments
Hi @psygo . |
Have you tried moving the firebase script tags to within the This part:
That should ensure that firebase is loaded before the |
Sorry for the delay, I'll try your solution this week hopefully. |
Hey @psygo. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
It didn't work unfortunately, still obtaining no data from Firebase after putting the scripts inside the |
Check your Firebase rules |
Hey 👋 The rework of the Auth & Firestore plugins as part of the FlutterFire roadmap was published over a week ago with a ton of fixes and new features. Please could you try the new version and see if this is still an issue for you? Any errors that may be happening should be more reliably coming through now - so the latest issue may actually indicate whats wrong, if anything. I'd also confirm your Firebase Firestore security rules are set correctly as @liveaffiliates suggested. If this is still an issue on the latest plugin versions then please submit a new up to date GitHub issue. For help migrating to the new plugins please see the new migration guide: https://firebase.flutter.dev/docs/migration |
1. The Problem
I'm trying to integrate my Flutter app — it works fine, with tests and mocks, on Android and iOS so far — to the web, but, despite following the HTML configurations and other tutorials and my simple authentication app working fine overall, I get that no data is reaching it. My snapshots have
snapshot.hasData == false
and itsconnectionState
isConnectionState.waiting
.2. The Code
I'm not having any errors aside from this weird, no-data behavior. My
index.html
file is configured this way:3. Additional Info
I've tried many variations of
firebasejs
' versions and none of them worked, specially not the most recent ones.The version of the revelant packages I'm using are:
google_sign_in
andflutter_facebook_login
are optional workflows and they also aren't working.The text was updated successfully, but these errors were encountered: