sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Demonstrate how to use IsCrashedLastRun in the MAUI Android sample

Open jamescrosswell opened this issue 7 months ago • 4 comments

While initiating Sentry for MAUI the options.CrashedLastRun is always null. Maybe the following line is run later? options.CrashedLastRun = () => JavaSdk.Sentry.IsCrashedLastRun()?.BooleanValue() is true;

I know iOS implementation has the feature added to the sample, could the android sample also be updated to expose how CrashedLatRun should be interpreted in the consumer code?

Originally posted by @dalux-era in #4044

Ideally we'd use this in conjunction with the new User Feedback API to prompt users for feedback when crashes occur. We can do this currently - it would be even better if we could get the id of the event that crashed the app though. See feature request in the Android SDK for this:

  • https://github.com/getsentry/sentry-java/issues/2560

jamescrosswell avatar Mar 19 '25 20:03 jamescrosswell