Firebase Crashlytics and Bugfender: a Step-by-Step Integration Guide

Firebase Crashlytics and Bugfender: a Step-by-Step Integration Guide

Ever since we started logging with Bugfender back in 2015, we’ve been working towards integration with Firebase, the app development platform created by Google. Firebase is famous for the breadth of its integration libraries and millions of people use the product around the world, drawn to its sleek UI and range of features.

Our primary goal has been integration with Firebase Crashlytics, which underpins the entire platform. Bugfender offers crash reporting itself, in addition to remote logging, but we want to make things as easy as possible for our developers, and many of them will naturally want to stay with Crashlytics.

So we’ve come up with this quick and easy guide to combine the two products.

First of all, how exactly is Bugfender different from Firebase Crashlytics?

Crashlytics is extremely popular for its UI, and the depth of its crash reports. But one thing it doesn’t do is log the user actions that lead up to a crash. It’s great at showing you when there’s a problem, but can’t always show you why it happened.

Bugfender, in contrast, will log every single action your users perform, even when the device is offline. Integration of the two products will give you the best of both worlds.

So how do I perform the integration?

The key to integrating Bugfender with Crashlytics is providing a way to identify the Crashlytics device within Bugfender. To make integration easier, in the latest SDK versions, we have added two new methods that will help you.


+ (NSURL *)sessionIdentifierUrl;
+ (NSURL *)deviceIdentifierUrl;


static URL getSessionUrl();
static URL getDeviceUrl();

With these two new methods, you can easily link between a crash in Firebase Crashlytics and the Bugfender log files.

Here’s an example of how you can initialize Bugfender and Crashlytics to get the information on each crash. For the purposes of illustration, we’ve used Android-Java code:

private void initBugfender()
    Bugfender.init(this, "<yourappkey>", BuildConfig.DEBUG);
    Crashlytics.setString("bugfender_device_url", Bugfender.getDeviceUrl().toString());
    Crashlytics.setString("bugfender_session_url", Bugfender.getSessionUrl().toString());

The important thing here is the call to setString() from Firebase Crashlytics, which allows you to add custom information to a crash. In our case we are sending two links, one of which allows you to go directly to the device or specific session which resulted in the crash.

These two links allow you to get more information about the crash that Firebase Crashlytics doesn’t provide.

Here you have a screenshot showing how this information is displayed on the Crashytlics site, with the two keys we have added.

Now, if you open any of these links, you will be redirected to the Bugfender-specific device or session.

Ok, that’s it. Easy, right? Now the integration is complete, you can find crash problems easily and save time, which is one of Bugfender’s key goals. Happy hunting!

If you can't see our comments box below, your browser's tracking protection may be blocking Facebook Comments.

as_aimail Created with Sketch. as_safedome Created with Sketch. as_tesco Created with Sketch. as_websummit Created with Sketch. as_ford Created with Sketch. as_vorwerk Created with Sketch.

Already Trusted by Thousands

Bugfender is the best remote logger for mobile apps.

Get Started for Free, No Credit Card Required