Skip to content

🐛 [firebase_analytics] Support dart only init on Android #10120

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

Closed
JulianBissekkou opened this issue Dec 15, 2022 · 4 comments
Closed

🐛 [firebase_analytics] Support dart only init on Android #10120

JulianBissekkou opened this issue Dec 15, 2022 · 4 comments
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: analytics type: enhancement New feature or request

Comments

@JulianBissekkou
Copy link

Bug report

Describe the bug
A clear and concise description of what the bug is.

Steps to reproduce

  1. Setup dart only init for firebase and try to use the firebase analytics SDK
  2. It provides an error that it doesn't work since the setup wasn't done on the native side.

Expected behavior

Dart only init works for analytics as well.


Additional context

This issue was already submitted but closed by updating the UI. I would like to keep this issue open and track progress of this specific integration since its needed for most of our apps.
Other issue: #7639

Can you maybe describe what needs to be done. I am open to contributing it. Should be one or multiple method channel calls? 🤔


Flutter doctor

Not relevant


Flutter dependencies

Not relevant

@JulianBissekkou JulianBissekkou added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Dec 15, 2022
@Lyokone
Copy link
Contributor

Lyokone commented Dec 15, 2022

@JulianBissekkou: The native Android and iOS SDK don't support manual initialization. To add support to dart-only init, we would need modifications in the native SDK.

@Lyokone Lyokone added type: enhancement New feature or request and removed type: bug Something isn't working labels Dec 15, 2022
@JulianBissekkou
Copy link
Author

Correct me if I am wrong, but iOS should work when looking at the documentation PR that was used to close the issue.
PR: https://github.com/firebase/flutterfire/pull/7745/files
Table:
image

I think this is the corresponding android issue that we are waiting for to implement support for dart only init for analytics:
firebase/firebase-android-sdk#66

@darshankawar darshankawar added triage Issue is currently being triaged. plugin: analytics platform: android Issues / PRs which are specifically for Android. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Dec 15, 2022
@FarzaneGhb

This comment was marked as spam.

@russellwheatley
Copy link
Member

There are no plans to init Analytics from Dart as t requires major changes to how the native Firebase SDKs work. See this comment for details: invertase/flutterfire_cli#14 (comment)

@firebase firebase locked and limited conversation to collaborators Jun 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: analytics type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants