You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/configuration/app-hangs.mdx
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@ description: "Learn about how to add app hang detection reporting."
8
8
9
9
We recommend disabling this feature for Widgets and Live Activities because it might detect false positives.
10
10
11
+
Furthermore, the Cocoa SDK might report app hangs when the OS opens a system dialog asking for specific permissions,
12
+
such as whether the user wants to allow your app to paste from the clipboard. As we can't reliably detect these scenarios,
13
+
we advise you to [pause and resume tracking app hangs](#pause-and-resume-app-hang-tracking) to circumvent this problem.
14
+
11
15
</Note>
12
16
13
17
This integration tracks app hangs. This feature is available on iOS, tvOS, and macOS.
@@ -101,3 +105,31 @@ SentrySDK.start { options in
101
105
}];
102
106
103
107
```
108
+
109
+
### Pause and Resume App Hang Tracking
110
+
111
+
Starting with version 8.30.0, you can pause and resume app hang tracking at runtime with `SentrySDK.pauseAppHangTracking()` and `SentrySDK.resumeAppHangTracking()`.
112
+
These methods don't stop the <PlatformLink to="/configuration/metric-kit">MetricKit</PlatformLink> integration from reporting [MXHangDiagnostic](https://developer.apple.com/documentation/metrickit/mxhangdiagnostic).
0 commit comments