getsentry / getsentry/sentry-cocoa

MetricKit Crash Fallback

Open
#2,627 6 comments 3 reactions 0 assignees View on GitHub
3. Medium Cocoa Errors Improvement
Dominant language
Swift
Stars
1.1k
Forks
418
Avg merge
2d 3h
Merged PRs (30d)
106

Description

### Description

If SentryCrash cannot capture a crash report, the SDK can use MetricKit crash data as a fallback. This would increase the reliability of our SDK.

It can happen that SentryCrash can't capture and report some types of crashes MetricKit can. The watchdog termination integration currently reports such crashes as watchdog terminations. Before doing that, the SDK could wait for MetricKit to report a crash. If it does, the SDK creates a normal crash event and sends it to Sentry, instead of a watchdog termination event. Since iOS 15, this happens almost immediately when starting the app again after a crash.

The goal is not to replace SentryCrash with MetricKit, as with SentryCrash the SDK can store the app's current state to disk, which is impossible with MetricKit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.