Skip to content

Commit 3edfb73

Browse files
authored
Disable and obsolete iOS Watchdog termination
1 parent 4817f49 commit 3edfb73

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Sentry/Platforms/Cocoa/SentryOptions.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,16 @@ internal NativeOptions(SentryOptions options)
128128
public bool EnableNetworkTracking { get; set; } = true;
129129

130130
/// <summary>
131-
/// Whether to enable watchdog termination tracking or not.
132-
/// The default value is <c>true</c> (enabled).
131+
/// Whether to enable watchdog termination tracking or not. NOT advised.
132+
/// The default value is <c>false</c> (disabled).
133133
/// </summary>
134134
/// <remarks>
135-
/// https://docs.sentry.io/platforms/apple/configuration/watchdog-terminations/
135+
/// This feature is prone to false positives on .NET since it relies on heuristics that don't work in this environment.
136136
/// </remarks>
137-
public bool EnableWatchdogTerminationTracking { get; set; } = true;
137+
/// <seealso href="https://github.com/getsentry/sentry-dotnet/issues/3860" />
138+
/// <seealso href="https://docs.sentry.io/platforms/apple/configuration/watchdog-terminations/" />
139+
[Obsolete("See: https://github.com/getsentry/sentry-dotnet/issues/3860")]
140+
public bool EnableWatchdogTerminationTracking { get; set; } = false;
138141

139142
/// <summary>
140143
/// Whether the SDK should use swizzling or not.

0 commit comments

Comments
 (0)