Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onCrashedLastRun #735

Open
philipphofmann opened this issue Jan 13, 2021 · 5 comments · May be fixed by #3958
Open

Add onCrashedLastRun #735

philipphofmann opened this issue Jan 13, 2021 · 5 comments · May be fixed by #3958
Assignees
Labels
Feature New feature or request

Comments

@philipphofmann
Copy link
Member

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

@dalux-era
Copy link

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().

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 12, 2025
@bruno-garcia
Copy link
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?

@aritchie
Copy link
Collaborator

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

@aritchie aritchie self-assigned this Feb 14, 2025
@aritchie aritchie moved this to In Progress in GDX Feb 14, 2025
@jamescrosswell
Copy link
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.

@vaind
Copy link
Collaborator

vaind commented Feb 18, 2025

did we get this in Unity to be a reference?

Yeah, for example on iOS there's a bool function exposed so it's very simple to do: https://github.com/getsentry/sentry-unity/blob/0059c77876e3746d50998af5b9ca8c6adbff6f52/package-dev/Plugins/iOS/SentryNativeBridge.m#L49

@aritchie aritchie moved this from In Progress to Done in GDX Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: Done
Status: No status
Archived in project
Development

Successfully merging a pull request may close this issue.

8 participants