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: 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. | 
Beta Was this translation helpful? Give feedback.
-
| 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 | 
Beta Was this translation helpful? Give feedback.

 besides I think the MAUI docs needs more TLC. You should also invest on showcasing the setup, capabilities and troubleshooting steps in liaison with a developer advocate in popular video platforms. Ive seen a few basic ones like :
 besides I think the MAUI docs needs more TLC. You should also invest on showcasing the setup, capabilities and troubleshooting steps in liaison with a developer advocate in popular video platforms. Ive seen a few basic ones like : 
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.