androidfirebasecrashlyticsgoogle-fabricfabric.io

How to migrate from Fabric Crashlytics to Firebase Crashlytics?


I have an app that logs crashes and non-fatals to Fabric Crashlytics and uses Firebase Analytics to log analytics events.

I want to migrate from Fabric Crashlytics to Firebase Crashlytics. In addition I want to save historical data from Fabric during the migration.

When I try to do it with provided mechanism of Firebase Migration (https://fabric.io/firebase_migration/apps) I cannot do it in a way I want to. In particular, I cannot provide existent Firebase project ID for migration. I see error:

Cannot migrate to existent project

  1. So how can I do migrate properly?
  2. I found some statements from Fabric team members (https://stackoverflow.com/a/49734863/4312184) that migration process is not ready for saving historical data. But maybe it is ready now?

Solution

  • What happened when you migrated?

    For the apps that you linked, your Crashlytics data now appears in the Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics) (in the Firebase console). The linking process does not involve any changes to the Crashlytics SDK or your Fabric API key.

    Note that in the coming months, we'll release Firebase-specific Crashlytics SDKs for iOS and for Android, as well as offer further upgrade instructions. So for now, if you migrated an iOS and Android app:

    Note: For migrating Unity apps to Firebase, follow the Unity migration instructions and review the Unity API changes.

    Discover Firebase Crashlytics

    Find all your Crashlytics data in the Firebase Crashlytics dashboard (https://console.firebase.google.com/project/_/crashlytics) (in the Firebase console).

    Important: To view crash-free users metrics, you need Google Analytics in your app.

    Firebase Crashlytics offers several new features:

    Start using Google Analytics

    Google Analytics is Firebase's analytics engine and gives you access to powerful insights into your data.

    Install the Google Analytics SDK

    Visit the Google Analytics documentation to learn how to install and initialize the SDK in your iOS, Android, or Unity app.

    Note: After you initialize the Google Analytics SDK in your app, there can be a delay of a few hours before data appears in the Firebase Crashlytics dashboard.

    How Google Analytics helps Crashlytics

    Google Analytics unlocks valuable capabilities and features that you were already using in Fabric:

    Note: Firebase can only use analytics data collected by Google Analytics. So, for your migrated apps, your historical analytics data (from Fabric Answers) cannot migrate to Firebase. This means that, unlike your crash data, your analytics data will start from a blank slate and the Firebase console will only show data collected after installing and initializing the Google Analytics SDK.

    Monitor your Latest Release

    With Google Analytics initialized in your app, you can monitor the stability and metrics of your current builds in the Latest Release page (https://console.firebase.google.com/project/_/analytics/latestrelease) in the Firebase console.

    Access the Latest Release page a couple different ways:

    Use Events rather than Answers

    Google Analytics lets you set custom and predefined events, similar to Fabric's Answers.

    Important: After you instrument Google Analytics events, we recommend removing Answers events from your app's code.

    Configure your notification settings

    Now that you've migrated to Firebase, you will start getting emails from both Firebase and Fabric.

    You can configure your notifications settings:

    Invite your team members

    Now that you've migrated to Firebase, invite your team so that they can start using Firebase and access your migrated app in the Firebase console.

    Note: Using the one-click invite button on Fabric's migration dashboard assigns the Editor role to all invited members.

    Source: Migration steps after linking from Fabric