Xamarin Insights, HockeyApp, or other crash loggers store crash data anyway before the application completes the process. They send data to the server after the application is restarted (they cannot send it immediately after the process is killed). So it is quite possible. Although I'm not sure that they store the crash data in the device store (most likely) or in the local SQLite database.
HockeyApp uses this code to detect unhandled exceptions. This may give you some ideas:
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => { TraceWriter.WriteTrace(args.Exception); args.Handled = true; }; AppDomain.CurrentDomain.UnhandledException += (sender, args) => TraceWriter.WriteTrace(args.ExceptionObject); // Wire up the unobserved task exception handler TaskScheduler.UnobservedTaskException += (sender, args) => TraceWriter.WriteTrace(args.Exception);
I would suggest trying and writing a text file in local storage in any of these methods
xleon
source share