TestFairy ❤ Xamarin Insights

Xamarin Insights is the de-facto monitoring tool for Xamarin developers. But what happens when the app crashed and you can’t figure out what happened?
That’s why TestFairy and Insights are best buds. Bros. Forever.
Copy-paste this code block into your project. Paste it right after the call to TestFairy.Begin().
[code lang=”csharp”]
NSNotificationCenter.DefaultCenter.AddObserver (TestFairy.SessionStartedNotification, delegate (NSNotification n) {
NSString sessionUrl = (NSString)n.UserInfo.ObjectForKey(TestFairy.SessionStartedUrlKey);
Insights.Track ("TestFairy", new Dictionary<string, string> {{ "URL", sessionUrl }});
Now, when investigating crashes, inspecting weird behaviour and playing Mulder and Scully, your Xamarin Insights will link back to the TestFairy session that represents this crash and tracking information.
It kinda looks like this:
Grab TestFairy for Xamarin here:
NuGet Package: https://www.nuget.org/packages/TestFairy.Xamarin-iOS/
Classic Package (32bit): https://app.testfairy.com/sdk/ios/download/latest/xamarin-classic/
Unified Package (64bit): https://app.testfairy.com/sdk/ios/download/latest/xamarin-unified/
Xamarin Component (32bit + 64bit): https://components.xamarin.com/view/testfairy.xamarin-ios

Leave a Reply

Your email address will not be published. Required fields are marked *