cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Session Replay iOS - Masking with AccessibilityIdentifiers

evasquez93
Newcomer

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

3 REPLIES 3

Patrick_H
Dynatrace Leader
Dynatrace Leader

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. ••••••

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

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

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.

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Featured Posts