Display notification in MainLauncher HandleAndroidException

KakeKake ✭✭USMember ✭✭


I'm trying to prevent the app to restart on exception (kill the app gracefully :-) ) , by implementing AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException; in the mainLauncher / activity.

Problem: when the HandleAndroidException is executed the "activity" is not available.
Exception when trying to show a HUD or dialog:
Android.Views.WindowManagerBadTokenException: Unable to add window -- token [email protected] is not valid; is your activity running?

I want to provide the user a message displaying a message and then kill the app.

Sign In or Register to comment.