Issue
I have a .NET iOS/Android app that does not use Xamarin.Forms or Maui. Would the .NET SDK work to capture .NET iOS and .NET Android events?
Applies To
-
Users with a .NET iOS/Android application
Resolution
Yes, you can capture events in iOS and Android from a pure .NET setup by using the SentrySdk.Init()
configuration. To enable this functionality, include the o.Native.AnrEnabled
and o.Native.EnableAppHangTracking
flags in their respective Sentry initialization methods. Here and here are examples of how to configure this in the MainActivity for Android and the AppDelegate for iOS.