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
DefaultFirebaseOptions are not supported for this platform #41
Comments
Windows and Linux aren't supported in Firebase Console. @Salakar this is interesting case to think about for FF desktop |
Yep the current recommendation is to select web as a platform to generate the DefaultFirebaseOptions for, and then instead of |
@Salakar works. Thanks a lot! |
Can you elaborate on this? My current Firebase initialization looks like this:
|
Or even more flexible: bool needsWeb = Platform.isLinux | Platform.isWindows;
await Firebase.initializeApp(
options: needsWeb
? DefaultFirebaseOptions.web
: DefaultFirebaseOptions.currentPlatform,
); |
Just to clarify, macOS is included, as mentioned in the README
|
Reason for that is that windows (and linux) are not supported by flutter fire plugin: FirebaseExtended/flutterfire_desktop#41
Hi, all, tried the solutions mentioned in this solution, but it does not work for flutter apps (for linux) with flutter version (3.10.6 - stable), firebase_core (2.15.0) and cloud_firestore (4.8.4). [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) Just wondering any timeline to officially support this for Linux/Windows? Cheers |
Have you taken a look at this package? |
I tried with firebase_core_desktop, the UI can be displayed on Linux, however, it failed to fetch data from firestore. the function snapshots() won't be able to be called. See the message below: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method Query#snapshots on channel plugins.flutter.io/firebase_firestore) |
After running into #19 and having to install the cli, create firebase_options.dart and add
options: DefaultFirebaseOptions.currentPlatform
when initializing the firebase App, I now run into this error:Could this have something to do with the fact that windows can't be added as a platform on https://console.firebase.google.com?
The text was updated successfully, but these errors were encountered: