Skip to content

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

@antonis

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

Metadata

Metadata

Assignees

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