We have a Xamarin iOS application that sits on top of a heavily async PCL library. There is a chance that occasionally a Task will fault in the library and not be observed. We have, therefore, wired up the UnobservedTaskException handler on the TaskScheduler to ensure this doesn't necessarily bring our app down.
This worked fine until we enabled HockeyApp for centralising crash reporting. Hockey adds its own handler for unobserved task exceptions which always terminates the app after sending a crash report to its servers. I have no problem with them doing this for the AppDomain UnhandledException handler but I need to stop them killing the app on unobserved task exceptions.
There appears to be a mechanism for installing a custom handler for these exceptions but I cannot see how to install it in the Xamarin iOS Hockey SDK
Here is the code we use to enable Hockey
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure(APPID);
#if DEBUG
manager.DebugLogEnabled = true;
#endif
manager.StartManager();
Does anyone know how to override HockeyApp's default behaviour for UnobservedTaskExceptions?