From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add crash reporting to your Xamarin iOS app

Add crash reporting to your Xamarin iOS app - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Add crash reporting to your Xamarin iOS app

- [Instructor] Now we're going to add crash reporting and analytics to our Xamarin IOS application. To do this I'm going to open up the Xamarin IOS project, right click on packages and add package. And we'll type in Microsoft.appcenter in here and we're going to select Microsoft.AppCenter, Microsoft.AppCenter Analytics and Microsoft.AppCenter Crashes and press add packages. And now we're going to open up the AppDelegate and this is where we're going to initialize crash reporting and analytics. So on the top of the AppDelegate I'm going to add some using statements. So it's going to be using Microsoft AppCenter and using Microsoft AppCenter Analytics and finally using Microsoft AppCenter Crashes. So inside our finished launching method before we do the Xamarin forms Init we're going to add our code to initialize crash reporting and analytics. So I'll add a new line and we'll put in a pre-processor directive to only do this if it's not the debug configuration. And then we'll start the…

Contents