Application monitoring and analytics
The App Center SDK allows you to instrument your code to determine how the application is used, how frequently features are used, and where errors are occurring. If you are distributing an iOS or Android app, you can also use the SDK to require users to take new releases that are flagged as mandatory.
Let's start by referencing the SDK and instrumenting our code.
Instrumenting your code
In this section, you will add some instrumentation code to the MyMediaCollection project to capture usage and crashes. When these changes are committed to GitHub, another App Center build will be triggered, and we will create a new mandatory release for users:
- In Visual Studio, open NuGet Package Manager for MyMediaCollection and search for
AppCenter
. Install the Microsoft.AppCenter.Analytics and Microsoft.AppCenter.Crashes packages in the project. - Open App.xaml.cs and add three
using
statements:using Microsoft.AppCenter; using Microsoft...