diff --git a/docs/platforms/dotnet/guides/android/index.mdx b/docs/platforms/dotnet/guides/android/index.mdx index 6382f4c9bec89..b4ec4b42767a4 100644 --- a/docs/platforms/dotnet/guides/android/index.mdx +++ b/docs/platforms/dotnet/guides/android/index.mdx @@ -61,6 +61,12 @@ public class MainActivity : Activity // Enable Native Android SDK ANR detection options.Native.AnrEnabled = true; + // If your app doesn't have sensitive data, you can attach screenshots automatically when a Java/native + // error is captured. + // Note: this only applies to Java-based errors; .NET managed exceptions are not currently supported. + // https://docs.sentry.io/platforms/android/enriching-events/screenshots/ + options.Native.AttachScreenshot = true; + // Session Replay is currently available via the ExperimentalOptions options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0; options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0; diff --git a/docs/platforms/dotnet/guides/apple/index.mdx b/docs/platforms/dotnet/guides/apple/index.mdx index fce68d02fa330..c69bc0d86ebc3 100644 --- a/docs/platforms/dotnet/guides/apple/index.mdx +++ b/docs/platforms/dotnet/guides/apple/index.mdx @@ -55,6 +55,10 @@ public class AppDelegate : UIApplicationDelegate // Enable Native iOS SDK App Hangs detection options.Native.EnableAppHangTracking = true; + // If your app doesn't have sensitive data, you can get screenshots on error events automatically + // https://docs.sentry.io/platforms/apple/guides/ios/configuration/options/#attach-screenshot + options.Native.AttachScreenshot = true; + options.SetBeforeSend(evt => { if (evt.Exception?.Message.Contains("Something you don't care want logged?") ?? false) diff --git a/docs/platforms/dotnet/guides/maui/index.mdx b/docs/platforms/dotnet/guides/maui/index.mdx index bd422b0b246cb..4867b6b15f66e 100644 --- a/docs/platforms/dotnet/guides/maui/index.mdx +++ b/docs/platforms/dotnet/guides/maui/index.mdx @@ -73,6 +73,9 @@ public static MauiApp CreateMauiApp() options.TracesSampleRate = 1.0; // ___PRODUCT_OPTION_END___ performance + // If your app doesn't have sensitive data, you can get screenshots on error events automatically + options.AttachScreenshot = true; + // Other Sentry options can be set here. })