-
Notifications
You must be signed in to change notification settings - Fork 555
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 gist not displaying UI properly #1946
Comments
@RedBrogdon this came from Frank, right? A talk or a workshop? Do we know whether this works in Flutter Web, outside DartPad? |
@goderbauer helped me debug, and we found that the
|
@RedBrogdon This makes me wonder if we're miissing a top-level object which is loaded via JS interop. Right now, Dart pad only loads in @goderbauer was able to launch the app without issues in Flutter Web (outside DartPad) with just these two JS SDKs, so probably a false trail. Is this an older style of FlutterFire, using |
Actually, I had the following scripts in my index.html:
Maybe dartpad IS missing the |
Oh ho! Thanks for following up. This may be an easy fix. Will check ASAP. |
On the questions about an older style: the For Googlers, this link clarifies this in more details: go/firebase-flutter-cross-platform |
This looks like it's blocked by #2038. |
I closed #2038, which is a separate CORS issue I think. Here's the CORS exception I see when I run the gist in the issue description:
|
Thanks @johnpryan I found we may need the |
Firebase JS SDK may not be inclined to support connecting from within an iframe. firebase/firebase-js-sdk#123 |
@RedBrogdon is this still a P1 issue? |
This is probably out of date since we don't currently have Firebase support. |
This gist does not display its UI when run:
https://dartpad.dev/f3d57a133b61f88aa938e480e1d57e9b?null_safety=true
There's a Debug banner that appears in the iframe, but no other output. The DartPad console displays a "Script error" message, and there's a generic message in the browser console:
The text was updated successfully, but these errors were encountered: