Skip to content

Last crash detection API parity between SDK's #1325

@Angelodaniel

Description

@Angelodaniel

For last-crash detection API across SDKs. With sentry-native, if you're using sentry_get_crashed_last_run(), then you also need to call sentry_clear_crashed_last_run() so you won't redetect an older crash on later runs.

I believe in cocoa it's automatically reset based on: https://github.com/getsentry/sentry-cocoa/blob/main/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_AppState.c#L459

So can we also make sure the native SDK automatically manages this as much as possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking-changeImprovementSDK parityBehavior that other SDKs provide and we are missing or implement differently

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions