Skip to content
Discussion options

You must be logged in to vote

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:

#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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mattjohnsonpint
Comment options

You must be logged in to vote
4 replies
@jamescrosswell
Comment options

@Syed-RI
Comment options

@jamescrosswell
Comment options

@Syed-RI
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants