From a3c55a2e7684847921dd0c798de79ad30227eeb4 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 4 May 2026 15:51:35 +1200 Subject: [PATCH 1/2] docs(dotnet): Document iOS attachment limitations for MAUI Scope attachments are not included in native iOS crash events because those are handled by the Cocoa SDK, which does not receive attachments from the managed .NET layer. SetBeforeSend is similarly not invoked for native iOS crashes. Refs getsentry/sentry-dotnet#4061 Co-Authored-By: Claude --- .../common/enriching-events/attachments/index.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx b/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx index 294c3846b14a30..4fcc497bc69875 100644 --- a/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx +++ b/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx @@ -57,6 +57,16 @@ Attachments live on the Scope + + + + +On iOS, scope attachments are only sent with events captured by the managed .NET SDK. Native crashes handled by the underlying Cocoa SDK do not include scope attachments. `SetBeforeSend` is also not invoked for native iOS crashes, so that workaround does not apply either. + + + + + Sentry allows at most 40MB for a compressed request, and at most 200MB of uncompressed attachments per event, including the crash report file (if applicable). Uploads exceeding this size are rejected with HTTP error `413 Payload Too Large` and the data is dropped immediately. To add larger or more files, consider secondary storage options. From d8025c5f27ae2baf99d7e7039912ebb4e0e11d42 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Tue, 5 May 2026 14:03:17 +1200 Subject: [PATCH 2/2] Apply suggestion from @jamescrosswell --- .../dotnet/common/enriching-events/attachments/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx b/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx index 4fcc497bc69875..7fd78f03476cb5 100644 --- a/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx +++ b/docs/platforms/dotnet/common/enriching-events/attachments/index.mdx @@ -61,7 +61,7 @@ Attachments live on the Scope -On iOS, scope attachments are only sent with events captured by the managed .NET SDK. Native crashes handled by the underlying Cocoa SDK do not include scope attachments. `SetBeforeSend` is also not invoked for native iOS crashes, so that workaround does not apply either. +On iOS, scope attachments are only sent with events captured by the managed .NET SDK. Native crashes handled by the underlying Cocoa SDK do not include scope attachments. `SetBeforeSend` is also not invoked for native iOS crashes.