Skip to content

Crashlytics

Mk5 edited this page Oct 18, 2020 · 2 revisions

Fabric Crashlytics will be unavailable after 15 October 2020. Crash reporting is available via Firebase Crashlytics. If you need it you should read this wiki page.

To use crash reporting feature in your project you should install crashlytics into it. Look at the following guide for android and ios.

Android

1. Add the fabric and the crashlytics to build.gradle:

buildscript {
  repositories {
    google()
  }

  dependencies {
    classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
  }
}

project(":android") {
    apply plugin: "com.android.application"
    // Put crashlitycs after android plugin - this is important.
    apply plugin: 'com.google.firebase.crashlytics'
    // ...
    dependencies {
       implementation 'com.google.firebase:firebase-crashlytics'
    }
}

2. Add the internet permission to the AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
  <application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" >
      <activity android:name=".MainActivity" android:label="@string/app_name" >
        <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>
  </application>
  <uses-permission android:name="android.permission.INTERNET" />
</manifest>

iOS

Not supported yet - will be available with RoboVM backend

GWT

Crash reporting is unavailable in the firebase web api.

Clone this wiki locally