Skip to content

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

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

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