-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_analytics] After migrated to Dart-only initialization, analytics is not working on Android. #7639
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
Tried the dart-only intialization steps as mentioned in https://firebase.flutter.dev/docs/manual-installation/#migrating-to-dart-only-initialization on a sample app and running it on Android does show me the same error:
|
Also seeing few reports for same error: |
I have exact same problem with android |
I got around this issue by going back and using the old approach of with the google services file. |
why deprecate manual installation then? that is so miss leading |
The same problem happens to me, works fine in ios, fails in android when using dart-only initialization. The only thing I did was to change the package name manually from com.example.whatever to a one with my domain, although this should not be an issue as |
why is closed with a "doc" pr ? |
Why is this closed @darshankawar ? It's not fixed still, I have this same problem with the dart-only installation. And all of these have been closed without a fix to either the code or docs 😕 : This problem will have me set up manual installation again 😞 |
@najibghadri |
Now solution is initialize app manually for Android like that: Platform.isAndroid Hope it help. |
Bug report
https://firebase.flutter.dev/docs/manual-installation#android
I migrated my app to Dart-only initialization.
Then, firebase analytics is not working on Android. I got this error.
Steps to reproduce
Expected behavior
firebase_analytics runs fine on 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: