Skip to content

feat(replay): Expose captureSurfaceViews option for Android Session Replay #6107

Closed

Description

@antonis

Summary

The Android SDK added experimental support for capturing SurfaceView content in Session Replay in sentry-java v8.41.0 (#5333). This allows replays to include content from components that render outside the normal View hierarchy — e.g. Unity views, video players, and map SDKs — which otherwise appear as black or transparent regions.

We already depend on sentry-android:8.41.0, but the captureSurfaceViews option is not bridged to the React Native SDK.

What needs to happen

  1. TypeScript: Add captureSurfaceViews?: boolean to MobileReplayOptions in packages/core/src/js/replay/mobilereplay.ts
  2. Android: Read the option from rnMobileReplayOptions in RNSentryStart.java and call androidReplayOptions.setCaptureSurfaceViews()
  3. iOS is not affected (Android-only feature)

Notes

Activity

  1. linear-code commented on May 7, 2026

    @linear-code
  2. self-assigned this
    on May 7, 2026
  3. added a commit that references this issue on May 20, 2026
    6176a94
  4. github-actions commented on May 21, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #6175, which was included in the 8.12.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions