I have in MainActivity handling undhandled exceptions as below but even though doing this causing app to crash. Is there a way to handle that app is not crashing?
protected override void OnCreate(Bundle bundle)
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
System.Threading.Tasks.TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException;
AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironmentOnUnhandledException;
using below in UWP works fine. not crashing the app.
UnhandledException += async (sender, e) =>
{
e.Handled = true;
};