-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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_storage 11.5.1] List() and ListAll() function not working on Windows #11915
Comments
Thanks for the report. I can reproduce this issue on Windows using firebase_storage sample code and update it as below: Future<void> _downloadLink(Reference ref) async {
final link = await ref.getDownloadURL();
final result = await FirebaseStorage.instance.ref().child("flutter-tests").list();
print('result: $result: ${result.items.length}');
... flutter: result: Instance of 'ListResult': 0 Then just run the app and press on copy link button. flutter doctor -v[√] Flutter (Channel stable, 3.16.0, on Microsoft Windows [Version 10.0.19045.3570], locale en-US)
• Flutter version 3.16.0 on channel stable at C:\WIP\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db7ef5bf9f (5 hours ago), 2023-11-15 11:25:44 -0800
• Engine revision 74d16627b9
• Dart version 3.2.0
• DevTools version 2.28.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\AndroidSDK
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\AndroidSDK
• Java binary at: C:\Program Files\Android\Android Studio Electric Eel 2022.1.1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4)
• Visual Studio at D:\DOWNLOADWORK\VS2022
• Visual Studio Community 2022 version 17.4.33213.308
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio Electric Eel 2022.1.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] VS Code (version 1.84.2)
• VS Code at C:\Users\ADMIN\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.76.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3570]
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.124
• Edge (web) • edge • web-javascript • Microsoft Edge 119.0.2151.58
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category. |
Hello @Sunclicker, thanks for reporting, the C++ Desktop SDK currently does not support List or ListAll functions, when it is added to the C++ SDK we will be able to add support to Windows. |
is there any workaround on this? |
I didn't find any workaround. Therefore I used Supabase (firebase alternative) for storing data (at least for windows apps). Works great. |
Is there any time frame for implementing this feature? |
Bug report
Describe the bug
The list() and listAll() functions does not seem to work if the platform is windows. The items list will always be empty. If the plarform is android, everything works as expected.
Steps to reproduce
Expected behavior
the items list should have some elements inside it.
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: