-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.platform: windowsIssues / PRs which are specifically for Windows.Issues / PRs which are specifically for Windows.plugin: storagetype: bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Storage
Which platforms are affected?
Windows
Description
The firebase storage emulator does not seem to work on windows. On android everything seems to work fine. The Future FirebaseStorage.instance.useStorageEmulator() will never finish. You also won't get any exception or warning in the debug console.
I even tried to set some different ports but i still don't had any success.
Reproducing the issue
replace the main() function in your main.dart with this code and change the FirebaseOptions according to your app.
You will notice that the Future FirebaseStorage.instance.useStorageEmulator() will never finish.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
const FirebaseOptions options = FirebaseOptions(
apiKey: "YOUR_API_KEY",
appId: "YOUR_APP_ID",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET");
await Firebase.initializeApp(options: options);
if (kDebugMode) {
try {
await FirebaseStorage.instance.useStorageEmulator('localhost', 9199);
} catch (e) {
print(e);
}
}
runApp(const ProviderScope(child: MyApp()));
}
Firebase Core version
3.3.0
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies
Expand Flutter dependencies
snippet
Dart SDK 3.4.3
Flutter SDK 3.22.2
riverpod_testapp 1.0.0+1
dependencies:
- cupertino_icons 1.0.8
- firebase_core 3.3.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_storage 12.1.2 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_riverpod 2.5.1 [collection flutter meta riverpod state_notifier]
dev dependencies:
- flutter_lints 3.0.2 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]
transitive dependencies:
- _flutterfire_internals 1.3.40 [collection firebase_core firebase_core_platform_interface flutter meta]
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- collection 1.18.0
- fake_async 1.3.1 [clock collection]
- firebase_core_platform_interface 5.2.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.17.4 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_storage_platform_interface 5.1.27 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.9.12 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- http 1.2.2 [async http_parser meta web]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- leak_tracker 10.0.4 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- meta 1.12.0
- path 1.9.0
- plugin_platform_interface 2.1.8 [meta]
- riverpod 2.5.1 [collection meta stack_trace state_notifier]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- state_notifier 1.0.0 [meta]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- vector_math 2.1.4
- vm_service 14.2.1
- web 0.5.1
Additional context and comments
I think this is not implemented for windows right now. But than there should be thrown an exception.
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.platform: windowsIssues / PRs which are specifically for Windows.Issues / PRs which are specifically for Windows.plugin: storagetype: bugSomething isn't workingSomething isn't working