Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable and obsolete iOS Watchdog termination #3867

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Fixes

- .NET Mobile: Disable and made obsolete the iOS Watchdog termination feature which is based on heuristics that don't work in .NET ([#3867](https://github.com/getsentry/sentry-dotnet/pull/3867))


### Dependencies

- Bump Native SDK from v0.7.16 to v0.7.17 ([#3857](https://github.com/getsentry/sentry-dotnet/pull/3857))
Expand Down
11 changes: 7 additions & 4 deletions src/Sentry/Platforms/Cocoa/SentryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,16 @@ internal NativeOptions(SentryOptions options)
public bool EnableNetworkTracking { get; set; } = true;

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

/// <summary>
/// Whether the SDK should use swizzling or not.
Expand Down
Loading