Search code examples
iosswiftfirebasecrashlyticssentry

Firebase Crashlytics and Sentry do not work together? (iOS)


I have to work with 2 different SDKs which should report the Crashs. Once is Firebase Crashlytics and the other is Sentry. The second one I need in the company for different tools. With Firebase I have a better overview in general.

My problem now is, I see only the crashs in Firebase, but not in Sentry. If I create by my own a crash, then it appears in both. I don't understand what is happen.

What I know is that when an app is crashing the OS creates the report and the SDK in the app is checking this with the next start of the app.

For me it looks like that Firebase catch the crash reports and Sentry didn't get it. But then why I can see my self created crashs in both?

Do you have some experience with both frameworks in one project?


Solution

  • This came up before, including in the Sentry forum.

    It's not a supported use case. Each error tracking SDK will attach to the signal handler to stack unwind during a crash and only one of them will succeed.

    EDIT: We did some tests and it seems to work. At least on the device we tested, connected to WiFi, etc. That said, we heard reports that it didn't work in other cases. So as I wrote on the comment below, it's undefined behavior and not recommended to be relied upon.