flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_analytics_web]: Firebase analytics for Flutter web is not working

Open rajubhusani opened this issue 1 year ago • 7 comments

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

rajubhusani avatar Mar 29 '24 07:03 rajubhusani

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

Lyokone avatar Mar 29 '24 08:03 Lyokone

But what is the way of integrating the analytics to Flutter web application. Is it similar to Flutter mobile ?

rajubhusani avatar Mar 29 '24 10:03 rajubhusani

We are using 3.7.11 flutter version.. Any one can update on this

rajubhusani avatar Apr 01 '24 05:04 rajubhusani

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

tuotau-lessonapp avatar Apr 26 '24 17:04 tuotau-lessonapp

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

tuotau-lessonapp avatar Apr 26 '24 17:04 tuotau-lessonapp

It seems to have been some sort of caching error most likely, because today it's working without any additional changes...

tuotau-lessonapp avatar Apr 29 '24 07:04 tuotau-lessonapp

@rajubhusani Can you confirm if you still having issues using the latest version of firebase?

TarekkMA avatar May 10 '24 12:05 TarekkMA

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!

google-oss-bot avatar May 21 '24 01:05 google-oss-bot

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.

google-oss-bot avatar May 30 '24 01:05 google-oss-bot