You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are close to release our Maui app on iOS to a lot of users, so we urgently need a way to log unhandled exceptions.
As I understand AppCenter is not (yet?) available for Maui, so I tried to implement basic logging myself.
But it seems there is currently no way to catch unhandled exceptions on iOS.
When running under the debugger the AppDomain.CurrentDomain.UnhandledException event is thrown as expected. But when running WITHOUT debugger the event seems not to be thrown.
Same with try/catch on UIApplication.Main.
Can this be fixed urgently please and/or is there another way to log unhandled exceptions?
Steps to Reproduce
Build and run the MauiUnhandledExceptionTest project on an iPhone or iPad with debugger attached.
Press the button "Show saved exception" => App shows "No exception data found".
Press the button "Throw exception" and continue until the app is crashed.
Restart the app WITHOUT the debugger attached.
Press the button "Show saved exception" => App shows the thrown exception.
Press the button "Throw exception" => App crashes.
Restart the app
Press the button "Show saved exception" => App shows "No exception data found".
Description
We are close to release our Maui app on iOS to a lot of users, so we urgently need a way to log unhandled exceptions.
As I understand AppCenter is not (yet?) available for Maui, so I tried to implement basic logging myself.
But it seems there is currently no way to catch unhandled exceptions on iOS.
When running under the debugger the AppDomain.CurrentDomain.UnhandledException event is thrown as expected. But when running WITHOUT debugger the event seems not to be thrown.
Same with try/catch on UIApplication.Main.
Can this be fixed urgently please and/or is there another way to log unhandled exceptions?
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Forestbrook/MauiUnhandledExceptionTest
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: