Skip to content

Add Sentry.crashedLastRunEventId() to return event id of last crashed run #2560

Open

Description

@romtsn

Meta issue: https://github.com/getsentry/team-mobile/issues/76

We could modify crashedLastRun marker file and also store the last event id.

Activity

  1. transferred this issue fromon Feb 22, 2023
  2. changed the title [-]Android[/-] [+]Sentry.lastEventId() returns event id on relaunch after crash[/+] on Feb 22, 2023
  3. changed the title [-]Sentry.lastEventId() returns event id on relaunch after crash[/-] [+]Placeholder for `Sentry.crashedLastRunEventId()`[/+] on Feb 22, 2023
  4. changed the title [-]Placeholder for `Sentry.crashedLastRunEventId()`[/-] [+]Add Sentry.crashedLastRunEventId() to return event id of last crashed run[/+] on Mar 1, 2023
  5. jamescrosswell commented on Mar 20, 2025

    @jamescrosswell

    Just adding a use case (we'd like to implement this in the sentry-dotnet Android Sample):

    We would like to show a dialog to collect feedback from users when we know the application crashed. For example "We noticed there was a problem last time you ran the application. Do you want to tell us what happened and maybe we can help you out?"

    Ideally feedback related to crashes would be associated with the Sentry event (these events contain a lot of context that users won't be able to articulate). So it would be great to have the Event ID available when OnCrashedLastRun returns true.

  6. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Mar 20, 2025
  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions