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.
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.
- stack_tracefirebase_crashlytics depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- firebase_corefirebase_crashlytics depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webSame familyWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_analyticsSame familyFlutter plugin for Google Analytics for Firebase.
- firebase_authSame familyFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
- firebase_auth_webSame familyWeb implementation of Firebase Authentication for Flutter