flutterfire
flutterfire copied to clipboard
[firebase_analytics_web]: Firebase analytics for Flutter web is not working
Is there an existing issue for this?
- [X] I have searched the existing issues.
Which plugins are affected?
Analytics
Which platforms are affected?
Web
Description
Uncaught MissingPluginException(No implementation found for method Analytics#setAnalyticsCollectionEnabled on channel plugins.flutter.io/firebase_analytics) And the logging is not working.
Reproducing the issue
Integrate the Flutter firebase analytics web plugin and tried to firebase_analytics plugin also.. For both the plugins it is not working.. Do we need to go JAVAscript route for flutter web?
Firebase Core version
2.7.1
Flutter Version
3.7.10
Relevant Log Output
Uncaught MissingPluginException(No implementation found for method Analytics#setAnalyticsCollectionEnabled on channel plugins.flutter.io/firebase_analytics)
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
Hi 👋 I see that you are using a much older version of firebase_core than the current one, can you update to firebase_core: ^2.27.2
But what is the way of integrating the analytics to Flutter web application. Is it similar to Flutter mobile ?
We are using 3.7.11 flutter version.. Any one can update on this
I think we have a related issue, the Firebase Analytics works fine on the debug build, but on the production build we get the following error when trying to log an event:
Uncaught : MissingPluginException(No implementation found for method Analytics#logEvent on channel plugins.flutter.io/firebase_analytics)
We have following versions in use: firebase_core 2.30.1 firebase_analytics 10.10.4
@Lyokone
Browsing the other bug reports it seems that it could be related to using canvaskit instead of html for the rendering.
We're building our app with: flutter build web --web-renderer canvaskit --release
It seems to have been some sort of caching error most likely, because today it's working without any additional changes...
@rajubhusani Can you confirm if you still having issues using the latest version of firebase?
Hey @rajubhusani. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@rajubhusani if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.