Xamarin: A way to submit SharedPreferences when global exception occurs?

leroy30

Posted on
Sep 17 2014

I saw that you can send custom data but the example I saw happened in the catch of a try..catch.

How can we hook into the global exception handler hook (from RaygunClient.Attach) so that we can, at that point, attach specific info?

My end goal is to send the id of the user so we can better match device-specific exceptions with specific customers.


leroy30

Posted on
Sep 17 2014

Perfect! =>

At the first-possible instance within your app just call this:

RaygunClient.Current.User = ApplicationPreferences.Email;

Where 'ApplicationPreferences.Email' is of course whatever identifier you are using in your own app.


Reply