Repository navigation
docs(unity): Update screenshots, options and sampling for SDK 4.13.0 - #20784
Open
bitsandfoxes wants to merge 4 commits into
Open
bitsandfoxes wants to merge 4 commits into
bitsandfoxes wants to merge 4 commits into
Conversation
sentry-cocoa now attaches screenshots to iOS native crashes with both runtime and build-time initialization, and only to crashes. Setting SetBeforeCaptureScreenshot or SetBeforeSendScreenshot turns them off. Refs getsentry/sentry-unity#2941
The error sample rate must be greater than 0, and native crashes on Android, iOS, and macOS with the Cocoa backend follow it. SendDefaultPii gates the device name, also on native crashes on desktop and consoles, and AttachScreenshot covers native crashes on iOS and Windows.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
bitsandfoxes
changed the base branch from
docs/unity-ios-native-crash-screenshots
to
master
November 13, 2026 12:33
bitsandfoxes
marked this pull request as ready for review
November 13, 2026 13:06
Contributor
|
Getting ready to monitor this change · Rollout details
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Updates the Unity docs for behaviour in sentry-unity 4.13.0 that pages on
masterdescribe and that the open Unity docs PRs (#20412–#20426) don't touch.enriching-events/screenshots): iOS native crashes get a screenshot with build-time and runtime initialization. SettingSetBeforeCaptureScreenshotorSetBeforeSendScreenshotturns iOS crash screenshots off, because the callbacks can't run during a crash. Events sentry-cocoa captures itself, such as failed HTTP requests, don't get a screenshot. On Windows, sentry-native attaches crash screenshots whether or not the callbacks are set.SetBeforeCaptureScreenshotandSetBeforeSendScreenshotsay that setting them turns off iOS native crash screenshots.AttachScreenshotsays that native crashes on iOS and Windows also get a screenshot.SendDefaultPiilists what it adds in Unity: the device name and the device's unique identifier, and the user name withIsEnvironmentUser. Native crashes on Windows, Linux, macOS with the Native backend, and consoles carry the device name only with this option. Native crashes on iOS, Android, and macOS with the Cocoa backend don't carry it.0, and the configuration window's Event Sample Rate accepts0.01to1. Native crashes on Android, iOS, and macOS with the Cocoa backend follow the rate. On Windows, Linux, macOS with the Native backend, and consoles, the native SDK always sends crashes.Each statement was checked against the sentry-unity 4.13.0 source:
UnityScopeIntegration, the Cocoa, Android and Native context writers and bridges, sentry-native'ssentry_core.c, sentry-java'sSentryClient, and the .NETSentryOptions.SampleRatesetter.lint-trailing-slashesandtypospass.Pages to check on the preview:
/platforms/unity/enriching-events/screenshots//platforms/unity/configuration/options//platforms/unity/configuration/sampling/IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: