Home / Companies / Firebase / Blog / Post Details
Content Deep Dive

Adding Crashlytics to a Jetpack Compose app

Blog post from Firebase

Post Details
Company
Date Published
Author
Marina Coelho
Word Count
1,942
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

Part three of the Make It So Android app series explains how to integrate Firebase Crashlytics into a Jetpack Compose application to automatically capture, upload, and group fatal and non-fatal errors by factors such as device, operating system, app version, and severity. It covers adding the required Firebase dependencies and Gradle plugin, testing the setup by forcing a runtime crash, and creating a LogService abstraction that records exceptions through Crashlytics. The article also demonstrates using CoroutineExceptionHandler instances in ViewModels to log unexpected coroutine errors and, where appropriate, show user-friendly Snackbar messages through a centralized SnackbarManager backed by StateFlow. To reduce repeated error-handling code, it introduces a shared MakeItSoViewModel base class with reusable handlers for logging errors alone or both logging and displaying them. The next installment will cover using Cloud Firestore to store and synchronize to-do items in real time, while noting that the demonstrated version uses callbacks and later versions replace them with Kotlin Coroutines and Flow.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 1,415 404 131 +26%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.