A fatal app hang is a serious signal. It says the main thread froze and the user was left with an unresponsive app. Sentry Cocoa 9.31.0, released on 21 October, fixes false fatal app-hang reports for processes launched in the background. The SDK now works out the app state at launch, so an idle main thread in a background process is no longer flagged as a hang.
If you do not track launch state, bad data hides in your stability numbers. Silent pushes, background fetches and other system launches can create hang reports that no user ever saw. Teams then spend sprints chasing problems that were never visible on screen, while real freezes sit lower in the list.
Data Points to Track
- sentry_cocoa_version: the SDK version in the build
- launch_state: foreground, background or prewarmed
- launch_reason: user tap, push, background fetch or system
- hang_duration_ms: how long the main thread was blocked
- hang_fatal: whether the hang ended the session
- app_state_at_hang: active, inactive or background
- ios_version: the operating system release
- device_model: the handset or tablet
- app_version: your own build number
Setup Steps
- Take a baseline of fatal app hangs per thousand sessions on your current build.
- Upgrade Sentry Cocoa to 9.31.0 or later in a test build.
- Tag every session with launch_state and launch_reason, using your own launch handling code.
- Add app_state_at_hang as a tag on hang events so you can filter them.
- Build a view that splits hang rate by launch_state.
- Test the fix by triggering a background fetch or silent push and confirming no hang is recorded.
- Release gradually and compare the new build with the baseline over a full week.
- Annotate the date in your dashboards so a fall in hangs is explained.
Actionable Insights
If fatal hang rate drops after the upgrade, part of your earlier number was noise from background launches. Your app did not suddenly get faster, so describe the change honestly in stability reports.
If background-launched hangs were common, review how much work your app does on a silent launch. Heavy start-up code in these cases still wastes battery, even when it is no longer flagged.
If foreground hangs stay high, you have a real problem. Group them by screen, device_model and ios_version to find the pattern, and fix the slowest path first.
Compare hang_duration_ms across versions as well. A shorter average with the same count means users are waiting less. Review the numbers with your support team too, because complaints about freezing are the best check that your data matches what people feel.
Common Pitfalls
Do not edit past data. Add a note for the version change.
Do not compare release health scores across the upgrade without allowing for the fix.
Trust Comes From Context
Stability numbers are only useful when you know what they measure. Record launch state alongside every performance event, and keep a log of SDK changes next to your charts.