27 Aug 2025
11:04 PM
- last edited on
28 Aug 2025
07:16 AM
by
MaciejNeumann
I want to omit an specific view that is a TextField with isSecureTextEntry enabled, I have tried to use the approach
masking configuration, .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 isSecureTextEntry 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 isSecureTextEntry property enabled?
I would appreciate your help, thank you
28 Aug 2025 09:33 AM
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. ••••••
28 Aug 2025 05:09 PM - edited 28 Aug 2025 05:11 PM
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 isSecureTextEntry as a container and 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 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
29 Aug 2025 06:54 AM
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.