firebase-crashlytics

Featured

Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.

API & Backend 619 stars 60 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Firebase Crashlytics Skill This skill defines how to correctly use Firebase Crashlytics in Flutter applications. ## When to Use Use this skill when: * Implementing crash reporting in a Flutter project. * Capturing fatal errors, non-fatal exceptions, and async/isolate errors. * Customizing crash reports with keys, logs, and user identifiers. * Configuring opt-in data collection or disabling reporting in debug builds. * Uploading symbol files for obfuscated builds. --- ## 1. Setup and Configuration ``` flutter pub add firebase_crashlytics flutter pub add firebase_analytics # enables breadcrumb logs for better crash context ``` Run `flutterfire configure` to update the Firebase configuration and add the required Crashlytics Gradle plugin for Android. ```dart import 'package:firebase_crashlytics/firebase_crashlytics.dart'; ``` **Obfuscated code:** - For apps built with `--split-debug-info` and/or `--obfuscate`, upload symbol files for readable stack traces. - **iOS:** Flutter 3.12.0+ and Crashlytics Flutter plugin 3.3.4+ handle symbol upload automatically. - **Android:** Use Firebase CLI (v11.9.0+) to upload Flutter debug symbols: ```bash firebase crashlytics:symbols:upload --app=FIREBASE_APP_ID PATH/TO/symbols ``` --- ## 2. Error Handling Configure comprehensive error capture in `main()` to catch errors from all sources: **Fatal Flutter errors:** ```dart void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); // Pa...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category