You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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().
@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.
Activity
dalux-era commentedon Feb 12, 2025
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().
bruno-garcia commentedon Feb 12, 2025
@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 commentedon Feb 12, 2025
@bruno-garcia I'm actually already working on this over at #3958 for iOS. It already exists in part on Android.
jamescrosswell commentedon Feb 18, 2025
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 commentedon Feb 18, 2025
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