# Session Replay iOS - Masking with AccessibilityIdentifiers

**URL:** <https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137>\
**Category:** Real User Monitoring\
**Tags:** session-replay, mobile-monitoring\
**Created:** [August 27, 2025, 10:04pm UTC](https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137 "2025-08-27T22:04:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evasquez93](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@evasquez93](https://community.dynatrace.com/u/evasquez93)\
**Post date:** [August 27, 2025, 10:04pm UTC](https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137/1 "2025-08-27T22:04:13Z")

</div>

I want to omit an specific view that is a TextField with **isSecureTextEntry** &nbsp;enabled, I have tried to use the approach

masking configuration,&nbsp; **.custom**

and

**maskingConfiguration.addNonMaskedView(viewIds: [“secure-screen-view”])**

However is not working, I noticed that even tough I remove all the rules the TextFields with&nbsp; **isSecureTextEntry** &nbsp;property is enable, the SDK still masking it.

Also I have noticed that the accessibilityIdentifier approach doesn’t work at all.

Is there another approach to avoid masking an specific TextField with&nbsp; **isSecureTextEntry** &nbsp;property enabled?

I would appreciate your help, thank you

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 28, 2025, 8:33am UTC](https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137/2 "2025-08-28T08:33:16Z")

</div>

Hi!

secure text fields are always masked, there currently is no way to disable this.  
As the secure text field itself masks the entered data there probably is a pretty good reason why a secure text field was used - what is your use case to capture it? - it won’t display anything but its built in masking like e.g. ••••••

---

<div class="post-metadata">

**Author:** ![evasquez93](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@evasquez93](https://community.dynatrace.com/u/evasquez93)\
**Post date:** [August 28, 2025, 4:09pm UTC](https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137/3 "2025-08-28T16:09:11Z")

</div>

Hi, thanks for your insight  
There is a specific reason why we use this textfield, the reason is to avoid to screen capture some views since contains sensible data and it is a security requirement by the entity that regulates the app, so the approach uses this TextField with&nbsp; **isSecureTextEntry** &nbsp;as a container and&nbsp;enables to achieve this screen capture avoiding, Session replay try to capture what it can, however this default behavior that hides the content provokes **flicking** &nbsp;when you use the app , so we wonder if we could omit that Textfield using the **accessIdentifier** , but as you says we could not do that.

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 29, 2025, 5:54am UTC](https://community.dynatrace.com/t/session-replay-ios-masking-with-accessibilityidentifiers/53137/4 "2025-08-29T05:54:31Z")

</div>

If there is a flickering when session replay is used you should create a support case to find out if this is caused by our agent and for our development team to investigate how to fix that.
