Track ANRs #2174
-
Is it possiblie in Xamarin Forms or MAUI to track ANRs with sentry, or is that something that is on the roadmap? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not in Xamarin Forms, but we already do this for MAUI. Presently it's on by default for Android only. To turn it on for iOS, add this to your #if __IOS__
options.iOS.EnableAppHangTracking = true;
#endif We'll be setting it on by default when we address issue #2148. Also note that while these will track and report ANRs, the reported stack trace will be in native code - not necessarily the C# code that generated the hang. We would have some work to do to light that up. I created an issue for that - #2179. |
Beta Was this translation helpful? Give feedback.
Not in Xamarin Forms, but we already do this for MAUI. Presently it's on by default for Android only. To turn it on for iOS, add this to your
UseSentry
options:We'll be setting it on by default when we address issue #2148.
Also note that while these will track and report ANRs, the reported stack trace will be in native code - not necessarily the C# code that generated the hang. We would have some work to do to light that up. I created an issue for that - #2179.