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? |
Replies: 2 comments 4 replies
|
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;
#endifWe'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. |
|
I know this is enabled by default, but I have not seens any data in the dash related to ANR or slow app load times. Am I missing something? Seems stuffs described here: https://docs.sentry.io/product/insights/mobile/mobile-vitals/ doesnt apply to MAUI. Am I missing specific package or config? @Flash0ver , @jamescrosswell @Dhrumil-Sentry |

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
UseSentryoptions: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.