Skip to content

Commit c2f1adb

Browse files
authored
fix(Unity): ANR mechanism (#15505)
1 parent 77d0d4c commit c2f1adb

File tree

1 file changed

+8
-0
lines changed
  • docs/platforms/unity/configuration/app-not-responding

1 file changed

+8
-0
lines changed

docs/platforms/unity/configuration/app-not-responding/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ Since the ANR integration creates an exception on a background thread, based on
3535

3636
Since the Unity SDKs [line number support](/platforms/unity/configuration/il2cpp) is limited to actually thrown exceptions, the integration does not provide you with line numbers in the captured ANR issues.
3737

38+
### Automatic Disabling of Native ANR Detection
39+
40+
To prevent duplicate ANR events, the Unity SDK automatically disables native ANR detection when initializing on Android and iOS platforms. This happens regardless of your Unity ANR setting. The Unity SDK's ANR detection is designed to work within the Unity runtime environment, where native detection mechanisms may not function correctly or would report duplicate events.
41+
42+
### ANR Mechanism for Event Filtering
43+
44+
Unity ANR events are reported with `MainThreadWatchdog` as the mechanism. You can use this to filter or categorize events in Sentry.
45+
3846
## Configuration
3947

4048
ANR detection is enabled by default in Sentry, but you can opt-out through the editor window by going to `Tools -> Sentry -> Advanced -> ANR Detection`. You can also set the ANR timeout there.

0 commit comments

Comments
 (0)