[firebase_crashlytics] add instanceFor(FirebaseApp app)
method in FirebaseCrashlytics
#8920
Replies: 1 comment
-
There is a response to this in #9109, however they state that the native counterparts don't support this. They truly don't, but I checked the source code, and I have a question about it. Here's the @NonNull
public static FirebaseCrashlytics getInstance() {
FirebaseApp app = FirebaseApp.getInstance();
FirebaseCrashlytics instance = (FirebaseCrashlytics)app.get(FirebaseCrashlytics.class);
if (instance == null) {
throw new NullPointerException("FirebaseCrashlytics component is not present.");
} else {
return instance;
}
} I see that this class only has this I can't tell if it would be a good idea considering the native libraries' behaviour, but I believe at least Flutter devs could still throw the JSON and plist horrors out, and decide Flutter apps at runtime. |
Beta Was this translation helpful? Give feedback.
-
I'm building an application where we have different backend stages (development, testing, production, ...), which I want to access and switch to in the application.
For each of these stages, there is a firebase project, and when we switch stage, I want to switch to that firebase project for crashlytics, so that we can keep the error reporting separated for these stages.
My proposal is to add the static method to FirebaseCrashlytics
so that I can specify which Firebase project I can send Error logs to
Beta Was this translation helpful? Give feedback.
All reactions