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

Demonstrate how to use IsCrashedLastRun in the MAUI Android sample #4048

Open
jamescrosswell opened this issue Mar 19, 2025 · 0 comments
Open

Comments

@jamescrosswell
Copy link
Collaborator

jamescrosswell commented Mar 19, 2025

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant