getsentry / getsentry/sentry-dotnet

Demonstrate how to use IsCrashedLastRun in the MAUI Android sample

Open
#4,048 4 comments 2 reactions 0 assignees View on GitHub
.NET Docs Good First Issue
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.