Skip to content

(MAUI) Lack of logs when Android decides to kill the app activity. #4206

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

Open
lucas-zimerman opened this issue May 20, 2025 · 1 comment
Open

Comments

@lucas-zimerman
Copy link
Collaborator

Problem Statement

One big issue that plagues Xamarin/MAUI is when your app invokes the camera app expecting a photo stream as return, but while the camera app is open, android kills other activities on background when low memory, in this case killing the xamarin/maui app,
When the photo is taken, the app is open again, but instead of a crash state, the app is return as if it was open for the first time, giving a impression that the app crashed and leaving no logs about it.

Solution Brainstorm

There should be an event generated by the SDK when this type of event happens so users are aware that this is happening to their apps.

DM me if you want a video recording of an MAUI app suffering from this issue

@lucas-zimerman lucas-zimerman changed the title Lack of logs when Android decides to kill the app activity. (MAUI) Lack of logs when Android decides to kill the app activity. May 20, 2025
@jamescrosswell
Copy link
Collaborator

@lucas-zimerman is there any way we can reproduce this? If we could, then we might be able to see what events or signals are being sent, that we could intercept.

Is this something that you'd expect to be logged as an event/crash?

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

2 participants