TestFairy ❤ Xamarin Insights

TestFairy ❤ Xamarin Insights


May 11, 2015 |
By Gil Megidish


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 }});
});
[/code]
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:
Screenshot
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

Remember, sharing is caring!

LEARN FROM THE PROS

Want to hear how other companies in the industry manage their mobile development efforts?