Replies: 1 comment
-
@ndnam198 hi there, I have the same problem here. I'm using flavors in Flutter and I have 2 instances of Firebase app but I can't get the specific crashlytics instance for each app and it's not reporting error as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#flutter #dart #firebase_crashlytics #multipleinstances
I am using FirebaseCrashlytics in a Flutter app. I am in need of create two Firebase instance, one for native Android with
"[DEFAULT]"
name, and the other customized with name"FlutterFirebaseInstance"
My setup:
Implementation in Dart as follows:
then verify by printing apps via Firebase.app
But I got no idea how to get FirebaseCrashlytics of this custom instance (my instance). Basically
FirebaseCrashlytics.instance
return the instance of name"[DEFAULT]"
. So whenever to callFirebaseCrashlytics.instance.recordError(...)
, the report goes to the host application rather than what is defined in myfirebase_options.dart
file.I checked
FirebaseCrashlytics
source code, but there's literally no way. Is it a bug or a soon-to-be-implemented feature?Does anyone have any idea on how to get the instance of the second
FirebaseCrashlytics
?Beta Was this translation helpful? Give feedback.
All reactions