Skip to content
pubscout

firebase_crashlytics

6.1.0, released 4 days ago by firebase.google.com

Flutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.

Flutter FavoriteWASM-ready
$ flutter pub add firebase_crashlytics
Source repository

What it does

Integrates Firebase Crashlytics into a Flutter app, automatically capturing uncaught exceptions and custom logs. It uploads crash symbols for Android and iOS to improve stack traces in the Firebase console.

AI-written summary of version 6.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need automatic crash reporting for Flutter apps
  • You already use other Firebase services and want a unified backend

Skip it when

  • You cannot modify native Android/iOS projects (e.g., pure web Flutter)
  • You need a lightweight, pure‑Dart solution without native SDKs

Strengths

  • Deep integration with Firebase ecosystem
  • Handles symbol upload and native crash data
  • Supported on Android, iOS, and macOS

Weaknesses

  • Requires native setup and platform-specific configuration
  • Minimum Android SDK 24 and macOS 11 may limit older devices

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
4

Add Firebase configuration files (GoogleService-Info.plist, google-services.json), update Android build.gradle and iOS podfile, ensure firebase_core is initialized, and set up Crashlytics in native projects.

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
  runApp(MyApp());
}

Works with

Packages commonly used together with firebase_crashlytics: ones it builds on, ones built on it, and its own family.