Closed feriyalsusanto closed 2 months ago
Hello @feriyalsusanto, are you using Windows as your developing platform?
Hello @feriyalsusanto, are you using Windows as your developing platform?
Yes, I’m using windows and mac for develop the app
@feriyalsusanto Hello, can you check if this issue is relevant? #12989
@feriyalsusanto Hello, can you check if this issue is relevant? #12989
I'm not using firebase_auth at the moment, just an new created project and trying to add firebase for my web project and facing this error. I also not sure if using try catch will resolve my issue and as we know using try catch will by pass the "error" and yes the app will run with no error.
Thank you for the reply. Are you using VS Code with these checkboxes enabled?
If so, please try running the application from the CLI using flutter run -d chrome and see if any issues occur.
Thank you for the reply. Are you using VS Code with these checkboxes enabled?
If so, please try running the application from the CLI using flutter run -d chrome and see if any issues occur.
Yes, still got the error.
Can you try to uncheck All Exceptions
and test again? it should work fine.
I'm also experiencing this issue.
Can you try to uncheck
All Exceptions
and test again? it should work fine.
I've try it and there are no errors, and if I use firebase auth it will shown error like this
You are still checking All Exceptions
which will trigger even if the execution is handled, please try without it.
You are still checking
All Exceptions
which will trigger even if the execution is handled, please try without it.
Hi, Thanks for the answer. Unfortunately I still facing issue when unchecking All Exceptions
in firebaseMessaging.getToken
and the token is null because the error.
@feriyalsusanto I don't think No Firebase App '[DEFAULT]' has been created is causing any issues. Can you try to create a minimal repo where I can reproduce this error and test it?
Hi @TarekkMA , sorry for the late response. Here I've created a minimal repo to test the errors github
@feriyalsusanto After setting up your repo with our Firebase and testing using the Auth emulator, everything seems to be working as expected.
Please make sure you have set up your project correctly using the FlutterFire CLI tool and ensure every configuration is done correctly.
@TarekkMA did you try run on web?
Yes using google chrome
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
Web
Description
I'm unable to initialize app using Firebase. Already tried several methods and still facing the same issue.
Reproducing the issue
1) New Project
2) Example Project (flutterfire)
Firebase Core version
3.1.1
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml Dart SDK 3.4.3 Flutter SDK 3.22.2 my_web_project 1.0.0+1 dependencies: - cupertino_icons 1.0.8 - firebase_core 3.1.1 [firebase_core_platform_interface firebase_core_web flutter meta] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] 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: - 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.1.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.17.2 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - 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] - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - stack_trace 1.11.1 [path] - 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] - vector_math 2.1.4 - vm_service 14.2.1 - web 0.5.1 - ```
Additional context and comments
Has tried to clean pub cache and still facing the same issue