Crash reporting & mobile observability
Crashlytics/Sentry, symbolication, crash-free-user rate as the north-star quality metric, and ANRs. "Users report a crash you cannot reproduce — what now?" is standard.
The mental model
You are running software on hardware you don't own, in conditions you can't see: thousands of device models, OS versions, locales, network states, and memory pressures, none of which you can attach a debugger to. Crash reporting is your only pair of eyes on the phones you'll never hold. The mental model is a black-box flight recorder. A plane crashes somewhere you weren't; the recorder captured what the instruments read in the seconds before, so investigators reconstruct the failure without having been on board. Your crash reporter is that recorder — when an app dies on a user's Redmi in a village with 2G, it captures the stack trace, the device state, and a trail of breadcrumbs, and uploads it on the next launch so you can reconstruct a crash you could never reproduce.
The shift from server thinking: on a server you have logs, metrics, and a live process to poke; on mobile the process is *gone*, on a device you can't reach, and the user's bug report is "it doesn't work." So the north-star metric is not "number of errors" but crash-free-user rate — the percentage of users who used the app without a single crash in a period. It centers the user, not the event: 10,000 crashes concentrated in a rare code path affecting 50 users is a very different problem from 500 crashes spread across 500 users, and crash-free-user rate distinguishes them where a raw crash count can't.
The one idea that makes crash reporting actually useful: **a stack trace is worthless unless it's symbolicated, and a crash is hard to fix unless you have the breadcrumbs that led to it.** A release build is minified/obfuscated (R8/ProGuard) or stripped of symbols (iOS), so a raw crash is a wall of a.b.c() addresses; symbolication maps those back to your real function names using the mapping file / dSYM you must upload at build time. And a symbolicated trace tells you where it died but not how it got there — breadcrumbs (the last screens, taps, and network calls) tell you the story, which is what lets you fix a crash you can't reproduce.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision