Skip to content

Commit

Permalink
fix(apple): App hanging when Watchdog termination is enabled (#7681)
Browse files Browse the repository at this point in the history
* Update app-hangs.mdx

* Update app-hangs.mdx

* Update app-hangs.mdx

* Update src/platforms/apple/common/configuration/app-hangs.mdx

Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>

---------

Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
  • Loading branch information
brustolin and shanamatthews authored Aug 28, 2023
1 parent 66f62bc commit a593a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/apple/common/configuration/app-hangs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Recording the stack trace precisely when the app hang occurs works reliably if t

The SDK reports an app hang immediately, but doesn’t report the exact duration because the [watchdog](https://developer.apple.com/documentation/xcode/addressing-watchdog-terminations) could kill the app anytime if it's blocking the main thread.

When watchdog termination tracking is enabled, the app hang code is disabled, runs in the background, and won’t report app hangs. This is done to minimize the number of false errors being reported by watchdog termination tracking, (such as if the OS kills an app causing an app hang).
When watchdog termination tracking is enabled, the app hang code runs in the background, even if `enableAppHangTracking` is disabled, and won’t report app hangs. This minimizes the number of false errors reported by watchdog termination tracking, for example, if the OS kills an app causing an app hang.

Because the app hang detection integration uses SentryCrashIntegration to capture the stack trace when creating app hang events, SentryCrashIntegration has to be enabled for the integration to work.

Expand Down

1 comment on commit a593a2e

@vercel
Copy link

@vercel vercel bot commented on a593a2e Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs.sentry.dev
sentry-docs-git-master.sentry.dev
docs.sentry.io

Please sign in to comment.