Summary
Starting in 8.19.0, on iOS the SDK fails to capture screenshots. NATIVE.captureScreenshot() returns empty, which breaks every feature that relies on it:
- Feedback Widget with screenshot — tapping the screenshot button and submitting shows an "Error capturing screenshot. Please try again." alert and the report can't be sent.
attachScreenshot: true — error/crash events are sent without the screenshot attachment (fails silently).
Sentry.captureScreenshot() — returns empty/null.
Affected versions
Steps to reproduce
- RN app with
Sentry.init({ attachScreenshot: true, integrations: [Sentry.feedbackIntegration({ enableTakeScreenshot: true })] }) on iOS.
- Feedback: open the widget → "Take a screenshot" → submit → "Error capturing screenshot" alert appears.
attachScreenshot: capture any exception → the resulting event has no screenshot.png attachment.
Also see failed Feedback E2E test on main https://github.com/getsentry/sentry-react-native/actions/runs/29898734412/job/88856598124
Confirmed locally by running the RN sample:
Summary
Starting in 8.19.0, on iOS the SDK fails to capture screenshots.
NATIVE.captureScreenshot()returns empty, which breaks every feature that relies on it:attachScreenshot: true— error/crash events are sent without the screenshot attachment (fails silently).Sentry.captureScreenshot()— returns empty/null.Affected versions
Steps to reproduce
Sentry.init({ attachScreenshot: true, integrations: [Sentry.feedbackIntegration({ enableTakeScreenshot: true })] })on iOS.attachScreenshot: capture any exception → the resulting event has noscreenshot.pngattachment.Also see failed Feedback E2E test on main https://github.com/getsentry/sentry-react-native/actions/runs/29898734412/job/88856598124
Confirmed locally by running the RN sample: