Skip to content

iOS: screenshots no longer captured since 8.19.0 (Feedback Widget, attachScreenshot, captureScreenshot) #6497

Description

@antonis

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

  1. RN app with Sentry.init({ attachScreenshot: true, integrations: [Sentry.feedbackIntegration({ enableTakeScreenshot: true })] }) on iOS.
  2. Feedback: open the widget → "Take a screenshot" → submit → "Error capturing screenshot" alert appears.
  3. 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:

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions