I cannot compile my flutter app since it is not configured for windows, or rather it is not configured Firebase for windows, so the app starts but fails. And I don't understand why when I run flutterfire configure
it shows what follows.
firebaser here
The Firebase SDKs for Flutter (colloquially known as FlutterFire) work by wrapping the native SDKs for Firebase's primary supported platforms: iOS (now also macOS), Android and Web. While Flutter allows you to build Windows and Linux desktop apps, Firebase does not have SDKs for those platforms.
For some of its products, Firebase supports developing on Windows through its C++/Unity SDKs, but not creating production apps for the platform. At Google I/O 2023 Firebase announced that it started wrapping this C++ SDKs to provide Windows support for development workflows for Flutter developers too. No progress has been reported since, but you can follow along on the FlutterFire repo I linked above.
There is an experimental flutterfire_desktop
package that implements pure Dart SDKs, but this is experimental and only support Firebase Authentication at the moment.
If you want to use all of Firebase in your Flutter app for Windows and/or Linux, you'll have to either wrap the REST APIs of the Firebase products you want to use yourself, or use a library that wraps the REST API already. An example of this is the firedart
library that provides basic support for Authentication and Firestore, but there are probably others.
© 2022 - 2025 — McMap. All rights reserved.