# Crash Reporting & Monitoring

> Capture crashes, errors and performance traces from real users with Sentry or Firebase Crashlytics, with symbolicated stack traces and release health. Free...

Canonical: https://www.internhack.in/roadmaps/tracks/mobile/crash-reporting
Last updated: 2026-11-28

Capture crashes, errors and performance traces from real users with Sentry or Firebase Crashlytics, with symbolicated stack traces and release health.

Intermediate · about 4 hours · difficulty 2/5

Learn first: [Build Variants & Code Signing](https://www.internhack.in/roadmaps/tracks/mobile/builds-and-signing)

Once an app is on thousands of devices you cannot reproduce every bug yourself. Crash reporting tells you what broke, on which device and OS, in which release, and how many users it affects.

### What to capture

- **Native crashes** (Kotlin, Swift, C++) and **JavaScript or Dart errors**, including unhandled promise rejections.
- **ANRs** (Android "app not responding") and app hangs on iOS.
- **Breadcrumbs:** the navigation, network calls and taps leading up to the error.
- **Release health:** crash-free sessions and users per release, so you can halt a rollout early.
- **Performance traces:** slow screens, cold start time and slow network requests.

### Tools

- **Sentry:** strong React Native and Flutter SDKs, source maps, session replay, performance monitoring. Set it up in Expo via the `@sentry/react-native` config plugin.
- **Firebase Crashlytics:** free, native-focused, with good Android vitals style dashboards and integration with Analytics.
- **Play Console Android vitals** and **Xcode Organizer** give baseline crash and ANR data even without an SDK.

### Readable stack traces

Release builds are minified. Upload **source maps** (JS), **dSYM** files (iOS) and **R8 mapping** files (Android) from CI for every build and OTA update, or stack traces will be unreadable. Tag each event with release and build numbers.

### Good hygiene

- Add user ids (not emails) so you can count affected users while respecting privacy.
- Scrub tokens and personal data from events.
- Set alerts for new issues and regressions, and triage weekly.
- Wrap screens in **error boundaries** so a crash in one widget shows a fallback instead of killing the app.

**Good enough to move on:** a thrown test error in a release build shows up in your dashboard with a readable stack trace, release tag and breadcrumbs.

## Key concepts

- **Native crashes, JS errors and ANRs**
- **Sentry for React Native and Flutter**
- **Firebase Crashlytics**
- **Source maps, dSYMs and R8 mappings**
- **Breadcrumbs and context**
- **Release health and crash-free rate**
- **Error boundaries**
- **Scrubbing personal data**

## Mini project

Integrate Sentry or Crashlytics, upload symbols from CI, trigger a native crash and a JS error in a release build, and confirm both arrive with readable traces.

## Check yourself

Your crash report shows only minified function names like a.b.c. What step in your release pipeline is missing?

## Free resources

- [Sentry for React Native](https://docs.sentry.io/platforms/react-native/) (Sentry)
- [Firebase Crashlytics](https://firebase.google.com/docs/crashlytics) (Firebase)
- [Android vitals](https://developer.android.com/topic/performance/vitals) (Android Developers)

Previous: [Over-the-Air Updates](https://www.internhack.in/roadmaps/tracks/mobile/ota-updates) · Next: [Product Analytics, Remote Config & Experiments](https://www.internhack.in/roadmaps/tracks/mobile/analytics)

## More in Analytics, Crash Reporting & Monetization

- [Crash Reporting & Monitoring](https://www.internhack.in/roadmaps/tracks/mobile/crash-reporting)
- [Product Analytics, Remote Config & Experiments](https://www.internhack.in/roadmaps/tracks/mobile/analytics)
- [Monetization: In-app Purchases, Subscriptions & Ads](https://www.internhack.in/roadmaps/tracks/mobile/monetization)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Mobile App Developer Roadmap](https://www.internhack.in/roadmaps/tracks/mobile)
