Shahal
Shahal

Reputation: 1070

Firebase Analytics required for Crashlytics

I've migrated my apps from Fabric to Firebase. All the apps are now visible in Firebase. My apps don't have Firebase integrated. As per the integration doc, app will still report crashes without Firebase SDK(only need Fabric SDK).

What i'm confused about is, do i need to add Firebase Analytics to get proper crash logs ? Because i forced a crash using below code(provided by Firebase) but it didn't record in Firebase but recorded in Fabric.

Button crashButton = new Button(this);
crashButton.setText("Crash!");
crashButton.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
        Crashlytics.getInstance().crash(); // Force a crash
    }
});

addContentView(crashButton, new ViewGroup.LayoutParams(
        ViewGroup.LayoutParams.MATCH_PARENT,
        ViewGroup.LayoutParams.WRAP_CONTENT));

Upvotes: 2

Views: 1824

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599081

Firebase Analytics is not required to use Crashlytics, but if you use both you will get better crash reports (since it combines the information from both). The problem is likely coming from somewhere else, although I can't say where based on the information provided. If the problem persists, reach out to Firebase support for personalized help in troubleshooting.

Upvotes: 3

Related Questions