Handling Global Exception Xamarin | Droid | iOS

前端 未结 2 689
一生所求
一生所求 2020-12-28 18:51

We all know that mobile is compact platform where we have to look lots of things while building an application. It could be anything e.g. Memory Performan

2条回答
  •  滥情空心
    2020-12-28 19:02

    Beside of doing it on your own you can also use Xamarin.Insights as it is free to use for Xamarin users and has got implementations for all platforms. You receive usage reports, crash reports etc. online without the need for the user to send you a log file manually.

    The only thing you need to do to receive crash reports is to initialize Xamarin.Insights on startup of your app:

    Insights.HasPendingCrashReport += (sender, isStartupCrash) =>
    {
      if (isStartupCrash) {
        Insights.PurgePendingCrashReports().Wait();
      }
    };
    Insights.Initialize("Your API Key");
    

提交回复
热议问题