-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_analytics] Not working on Android with manual initialisation #10399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@darshankawar the workaround suggested in another issue:
is not working. Please reopen. |
No, that actually did not help (I've done it twice), and I'm unsure of what other info I can provide you with. |
Have you already followed the documentation ? |
Both were covered by me, yes. When the app is started, I see no errors in the console and I can see all of the objects as being successfully initialised. For example, |
I can also not use Google Analytics on Android in one of my projects after running I can connect to Analytics with the web version of the project in Chrome and see the expected events (navigating pages and a dummy button that does a starting cart event), but not via an Pixel 3 emulator or a real Pixel 3 over USB. The |
@darshankawar please reopen the ticket, clearly there's a lot of people having issues with the plugin. |
@rjduffsep
Also make sure you're applying this at the bottom of your app/build.gradle:
You will also need this:
as a dependency in your android/build.gradle. @ljmatan Please check above in your case too. |
Our We have this in In our On the bottom we also have:
|
The Thank you for your help. For my own edification, what step did I miss that should have brought in those two elements into the gradle files? |
|
For @ljmatan's report, I'll keep this issue open for team's insights on originally reported behavior. |
We advise initialising your application using the service files. This is why when you run the current version of |
Bug report
Describe the bug
We're not receiving any analytics events from the Android platform. Neither the "manual" initialisation nor the CLI init seems to be working.
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: