getsentry / getsentry/sentry-dotnet
Demonstrate how to use IsCrashedLastRun in the MAUI Android sample
- Dominant language
- C#
- Stars
- 770
- Forks
- 248
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 49
Description
> 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]()
Contributor guide
Assessment
This issue has not been assessed yet.