Skip to content

Commit 3300274

Browse files
authored
chore(apple): Add docs about photo picker and masking view controllers (#15656)
1 parent 42ac3c3 commit 3300274

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/platforms/apple/common/session-replay/customredact.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ By default, our Session Replay SDK masks all text content, images, and user inpu
2828

2929
You can choose which type of view you want to mask or unmask by using the `maskedViewClasses` or `unmaskedViewClasses` options.
3030

31+
<Alert level="info">
32+
33+
Custom masking only works with subclasses of `UIView`. You cannot mask or unmask `UIViewController` classes or other non-view types. If you need to mask content within a view controller, you should target the specific `UIView` instances instead.
34+
35+
</Alert>
36+
3137
Let's say you have a custom view that you want to mask and a `UILabel` subclass (which normally would be masked) that you don't want to mask. You can set the options like this:
3238

3339
```swift

docs/platforms/apple/common/session-replay/troubleshooting.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ You can follow the progress in [this GitHub issue](https://github.com/getsentry/
8585

8686
</Expandable>
8787

88+
<Expandable title="Photo pickers and camera views are not captured" permalink>
89+
90+
Session Replay cannot capture photo picker interfaces (`PHPickerViewController` and `UIImagePickerController`) or camera views due to iOS limitations. These pickers use a remote view rendering process rather than being rendered directly in your app's view hierarchy.
91+
92+
On physical devices, photo pickers and camera views will not appear in session replays. On simulators, they may appear because simulators don't use the same remote rendering approach, but this behavior should not be relied upon.
93+
94+
This limitation exists at the iOS system level and cannot be worked around by configuring `unmaskedViewClasses` or other Session Replay settings.
95+
</Expandable>
96+
8897
<Expandable title="Session Replay is not recording with custom window setup" permalink>
8998

9099
If you have a custom window setup (e.g., multiple instances of `UIWindow`), you need to ensure that the Sentry SDK is able to find the correct window.

0 commit comments

Comments
 (0)