Skip to content

Auto detection of crash in iOS and Android MAUI apps #3666

Closed

Description

@munkii

Problem Statement

I have seen that other Sentry SDKs have a way of checking if the last run ended in an unhandled crash. I don't beleive this is currently possible with the MAUI SDK.

What we would do with this is popup a simple (prebaked if possible) UI that takes feedback from the user. We'd like to be able to remove any requirement for an email address from the feedback as our users need to maintain anonymity.

They may want to give is emailaddress but we do not want it as they may well be in a clinical trial and should not be sharing that with us.

Solution Brainstorm

The Cocoa SDK has support for detecting when the last run crashed:

// @property (copy, nonatomic) SentryOnCrashedLastRunCallback _Nullable onCrashedLastRun;
[NullAllowed, Export ("onCrashedLastRun", ArgumentSemantic.Copy)]
SentryOnCrashedLastRunCallback OnCrashedLastRun { get; set; }

That's not yet surfaced by the .NET SDK though.

Would need an alternative solution for other platforms.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Oct 8, 2024
  2. jamescrosswell commented on Oct 8, 2024

    @jamescrosswell
    Collaborator
  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Oct 8, 2024
  4. removed theissue type on Aug 6, 2025
  5. jamescrosswell commented on May 19, 2026

    @jamescrosswell
    Collaborator

    I believe this has been implemented already. See:

    options.OnCrashedLastRun = e =>
    {
    Console.WriteLine(e);
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions