Anybody maybe found some workaround for this bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=30513
?
It drives me crazy... the screenshoot is the exception report I got from async method.
Here is another one solution which worked for me. Just add this handler in your Application or main Activity
AndroidEnvironment.UnhandledExceptionRaiser += delegate(object sender, RaiseThrowableEventArgs args){
typeof (System.Exception).GetField("stack_trace", BindingFlags.NonPublic | BindingFlags.Instance)
.SetValue(args.Exception, null);
throw args.Exception;
};
The explanation is here in the last post https://forums.xamarin.com/discussion/45219/stack-trace-not-captured-properly
Okey guys, so I have found workaround for this bug, here is step by step what to do to handle it and let Xamarin.Insights work.
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
args.Handled = true;
}
And voila, the Xamarin.Insights is ready to work for you :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With