-
Notifications
You must be signed in to change notification settings - Fork 616
Use Firebase Crashlytics with FirebaseOptions #187
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
are there any plans to implement this? or is there maybe even a way how we can achieve this already with the current version? |
Having the same issue |
Facing the same problem. |
What about NDK libs paths which we were able to set under Fabric plugin: |
One thing you can do to work around this is to disable default app initialization and name the app "default" when initializing it. see https://firebase.googleblog.com/2017/03/take-control-of-your-firebase-init-on.html for details |
Talked to the team, they found this super interesting and will want to investigate. The think they may be able to implement better support for this, but can't provide any specific timeline quite yet. |
Thanks for the question and for waiting patiently. Many Firebase SDKs products provide an overload that allows you to pass in a custom FirebaseApp This API will allow you inject these Firebase instances as dependencies into your application code so they continue remaining agnostic to prod,staging,dev versions of your app. I suspect your question pertains to eagerly initialized SDKs like Analytics, Crashlytics and Firebase Performance that require no developer interaction and start working automagically once included in the app. Note that these SDKs also do not support the desired The challenge with designing an API like In the absence of this API, you may be able to do this by disabling the default init provider and creating your own equivalent. The key here is to perform the custom initialization super early in your app's lifecycle, like in a Content Provider.
I realize is a suboptimal experience. It does get the job done for now. Feel free to propose ideas you may have to help up build an API to accommodate the nuance I described above. |
Closing this as a duplicate of #66 since there's been a lot more folks jumping in there. Thanks and please bring forward any API ideas you have. |
To support the use-case of
|
Uh oh!
There was an error while loading. Please reload this page.
What feature would you like to see?
Allow Crashlytics to be used with several projects.
Related to #66
How would you use it?
In our app we have several projects. Each project represents one development environment (dev, staging, prod). Right now it seems to be impossible to setup Firebase so that it does not use the google-services.json, but instead uses a dynamically generated FirebaseApp via FirebaseOptions.
A little code example:
The text was updated successfully, but these errors were encountered: