Firebase Crashlytics not working without Fabric API key

10,626

Solution 1

For those on iOS that used Fabric, so this is what I finally got from support. I wanted to start fresh.

  • Visit https://firebase.google.com/docs/crashlytics/get-started?authuser=1#ios.
    • Revise pods in Podfile accordingly (specify versions of Fabric and Crashlytics as instructed)
    • Update the build phase run script: "${PODS_ROOT}/Fabric/run" instead of the current one that points to their Fabric API key
  • Remove API key from Info.plist - In your AppDelegate.swift, remove import Fabric and import Crashlytics and any Fabric.with statement, keep import Firebase and use FirebaseApp.configure() instead

  • Go to project settings in Firebase console, click the Integrations tab, unlink the appropriate Fabric app from Firebase (if you don't do this, you will get an error looking like: "[Fabric] failed to download settings Error Domain=FABNetworkError Code=-5")

  • Go to the Crashlytics tab and you should see that you have to onboard Firebase Crashlytics again.
  • Go through those steps choosing "This app doesn't have Crashlytics installed" and when you get to the final step, build and run the app and wait a few seconds. Then you Crashlytics tab will be setup.

Once I did this, and force crashed, it FINALLY showed up.

Solution 2

Below things are mandatory, if you Migrate from existing Fabric crashlytic application to Firebase crashlytic

<meta-data
          android:name="io.fabric.ApiKey"
            android:value="xxxxxxxxxxxxxxxxxxxxxxxxxx"
            />
 Fabric.with(new Crashlytics()));

But not sure what will happen to these API and KEY, once fabric is down Say mid 2019.

Share:
10,626

Related videos on Youtube

YTerle
Author by

YTerle

Updated on June 16, 2022

Comments

  • YTerle
    YTerle about 2 years

    I got an android app where Fabric Crashytics is installed. I've followed the official guide to setup Firebase Crashlytics and linked the Fabric and Firebase accounts (AFAIK Firebase acquired Fabric recently). So in particular I removed the Fabric API key with <meta-data/> tag in manifest.xml.

    Then I tried to make a test crash but it didn't appear neither in Firebase not Fabric dashboard, however I got a success log in logcat: Crashlytics report upload complete: <ID>.

    When I sniffed the network, it appeared that I'm getting 403 Unathorized from Crashlytics. However when I add the Fabric API key in <meta-data/> tag it works and I see the crash report.

    Help me please what is wrong with my configuration, why do I need to use old Fabric API key if I'm using new Firebase Crashlytics and docs don't state that.

    • YTerle
      YTerle almost 6 years
      @MikeBonnell I've selected that it was an existing Crashlytics app, and then after few minutes all reports from Fabric became visible on Firebase
    • Mike Bonnell
      Mike Bonnell almost 6 years
      If you select that it's an existing Crashlytics app, then we expect the Fabric API key to be present.
  • Adeel Miraj
    Adeel Miraj about 5 years
    Removing the API key from the plist is the key. Thanks for posting the answer.
  • Elvis Chiang
    Elvis Chiang over 4 years
    After searching for days , unlink Fabric from Firebase finally solved my ios problem. thanks
  • mahee96
    mahee96 over 3 years
    I guess it turned out to be the other way around for sure!
  • Martin Zeitler
    Martin Zeitler over 3 years
    @mahee96 Back then it seemed alike... as if.