Skip to content

Add onCrashedLastRun #735

Closed
Closed

Description

@philippsuess

Add a callback onCrashedLastRun to SentryOptions that is called by the SDK passing the event
when Sentry is initialized and the last program execution terminated with a crash.

PR in Cocoa: getsentry/sentry-cocoa#808
Docs in Cocoa: https://docs.sentry.io/platforms/apple/enriching-events/user-feedback/
The issue on Java: getsentry/sentry-java#1125

Activity

  1. added
    Feature
    on Jan 13, 2021
  2. dalux-era commented on Feb 12, 2025

    @dalux-era

    Hi.
    Could this feature get a prioritization bump? A lot of people are switching from AppCenter to Sentry. It would definitely help migrating for all the .NET projects that had this feature in AppCenter - Crashes.HasCrashedInLastSessionAsync().

  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Feb 12, 2025
  4. bruno-garcia commented on Feb 12, 2025

    @bruno-garcia
    Member

    @aritchie this could be added just for iOS and Android if that makes it easier, as it just binds to the native sdks.

    If you have a chance to peek at the code, any idea of the effort to add this?

    @vaind @bitsandfoxes did we get this in Unity to be a reference?

  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 12, 2025
  6. aritchie commented on Feb 12, 2025

    @aritchie
    Contributor

    @bruno-garcia I'm actually already working on this over at #3958 for iOS. It already exists in part on Android.

  7. self-assigned this
    on Feb 14, 2025
  8. moved this to In Progress in GDXon Feb 14, 2025
  9. jamescrosswell commented on Feb 18, 2025

    @jamescrosswell
    Collaborator

    @bruno-garcia I'm actually already working on this over at #3958 for iOS. It already exists in part on Android.

    Just bumped into this btw - which might be an interesting workaround if we don't have access to the file system. Although, I'm not sure what happens to performance if we try to store an envelope as a preference.

  10. vaind commented on Feb 18, 2025

    @vaind
    Contributor
  11. moved this from In Progress to Done in GDXon Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Feature

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions