diff --git a/CHANGELOG.md b/CHANGELOG.md index b6444961f6..eadc35102e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - The SDK now makes use of the new SessionEndStatus `Unhandled` when capturing an unhandled but non-terminal exception, i.e. through the UnobservedTaskExceptionIntegration ([#4633](https://github.com/getsentry/sentry-dotnet/pull/4633), [#4653](https://github.com/getsentry/sentry-dotnet/pull/4653)) - The SDK now provides a `IsSessionActive` to allow checking the session state ([#4662](https://github.com/getsentry/sentry-dotnet/pull/4662)) - The SDK now makes use of the new SessionEndStatus `Unhandled` when capturing an unhandled but non-terminal exception, i.e. through the UnobservedTaskExceptionIntegration ([#4633](https://github.com/getsentry/sentry-dotnet/pull/4633)) +- Added experimental support for Session Replay on iOS ([#4664](https://github.com/getsentry/sentry-dotnet/pull/4664)) ## 6.0.0-preview.2 diff --git a/Sentry.sln b/Sentry.sln index afa5819374..c2b46e8f40 100644 --- a/Sentry.sln +++ b/Sentry.sln @@ -221,7 +221,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{A8A9 scripts\build-sentry-cocoa.sh = scripts\build-sentry-cocoa.sh scripts\update-project-xml.ps1 = scripts\update-project-xml.ps1 scripts\build-sentry-native.ps1 = scripts\build-sentry-native.ps1 - scripts\ios-simulator-utils.ps1 = scripts\ios-simulator-utils.ps1 scripts\commit-formatted-code.sh = scripts\commit-formatted-code.sh scripts\accept-verifier-changes.ps1 = scripts\accept-verifier-changes.ps1 scripts\generate-cocoa-bindings.ps1 = scripts\generate-cocoa-bindings.ps1 diff --git a/samples/Sentry.Samples.Maui/MauiProgram.cs b/samples/Sentry.Samples.Maui/MauiProgram.cs index 1a8a6a30a7..a749b2b855 100644 --- a/samples/Sentry.Samples.Maui/MauiProgram.cs +++ b/samples/Sentry.Samples.Maui/MauiProgram.cs @@ -44,20 +44,22 @@ public static MauiApp CreateMauiApp() // Automatically create traces for async relay commands in the MVVM Community Toolkit options.AddCommunityToolkitIntegration(); -#if __ANDROID__ - // Currently, experimental support is only available on Android +#if __ANDROID__ || __IOS__ || __MACCATALYST__ + // Experimental support for Session Replay is currently available on Android, iOS and Mac Catalyst. options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0; options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0; // Mask all images and text by default. This can be overridden for individual view elements via the // sentry:SessionReplay.Mask XML attribute (see MainPage.xaml for an example) options.Native.ExperimentalOptions.SessionReplay.MaskAllImages = true; options.Native.ExperimentalOptions.SessionReplay.MaskAllText = true; +#if __ANDROID__ // Alternatively, the masking behaviour for entire classes of VisualElements can be configured here as // an exception to the default behaviour. // WARNING: In apps with complex user interfaces, consisting of hundreds of visual controls on a single // page, this option may cause performance issues. In such cases, consider applying the // sentry:SessionReplay.Mask="Unmask" attribute to individual controls instead. options.Native.ExperimentalOptions.SessionReplay.UnmaskControlsOfType