🐛 [firebase_analytics] - Web: Unable to load plugin when uBlock is on, doesn't fail gracefully #3531
Labels
impact: crowd
Affects many people, though not necessarily a specific customer with an assigned label. (P2)
plugin: analytics
type: bug
Something isn't working
type: crash
A compile error or crash
Bug report
Describe the bug
In web browsers with heavy privacy blocking (Chome/Firefox with UBlock, Brave Browser), Firebase Analytics fails to load. Additionally, it bubbles it's error all the way up to the dart engine and, from what I can tell, isn't something I can catch or modify due to it being generated in
generated_plugin_registrant
. This results in a white page (nothing loads) and a console error on my Flutter web site (https://my.lunajournal.app).Steps to reproduce
Steps to reproduce the behavior:
Stacktrace attached:
Expected behavior
Even if analytics fail to load, I'd expect the remainder of the site to be functional. If that isn't possible, I'd expect a way to disable analytics for web builds while keeping them around for iOS and Android.
Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: