# Mobile application session replay and masking

**URL:** <https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021>\
**Category:** Real User Monitoring\
**Tags:** session-replay, mobile-monitoring\
**Created:** [March 27, 2023, 1:28pm UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021 "2023-03-27T13:28:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conal\_Buchanan1](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Conal\_Buchanan1](https://community.dynatrace.com/u/Conal_Buchanan1)\
**Post date:** [March 27, 2023, 1:28pm UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/1 "2023-03-27T13:28:14Z")

</div>

For some context I’ve been requested to configure a mobile application in 2 situations.

In the dev or low environment the app will have no masking.

In production the app should have full&nbsp;masking enabled.

We’ve configured an application with full masking using&nbsp;these settings:

gradle:

userActions { namePrivacy true }

kotlin

val config: MaskingConfiguration = Safest()

I’ve attached a screenshot of what the recording looks like in session replay.

 ![masking_02.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/a/cac5263a76e7758c6b1fbf4745942e8ee0c986b1.png)

I would like to confirm if this is what we would expect to see.

Are there any components that should be visible in the Safest() configuration?

Are production setup’s typically configured in Safe() mode?

---

<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:** [March 28, 2023, 6:30am UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/2 "2023-03-28T06:30:57Z")

</div>

Yes, in safest all labels, fields etc. are blacked out. There is no typical production setup as it depends on what the customers and end users privacy needs. E.g. if most elements do not contain any PII (like OK buttons, general not user related text) or if the view contains lots of PII (think of a listing of your bank account)

---

<div class="post-metadata">

**Author:** ![Conal\_Buchanan1](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Conal\_Buchanan1](https://community.dynatrace.com/u/Conal_Buchanan1)\
**Post date:** [March 29, 2023, 9:30am UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/3 "2023-03-29T09:30:03Z")

</div>

Ok thanks, wanted to make sure it’s not a bug in our configuration.

Will try reducing the masking level.

---

<div class="post-metadata">

**Author:** ![paul\_kapeller](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paul_kapeller/32/37806_2.png) [@paul\_kapeller](https://community.dynatrace.com/u/paul_kapeller)\
**Post date:** [March 29, 2023, 2:23pm UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/4 "2023-03-29T14:23:21Z")

</div>

FYI: we described the masking configurations you can make in our documentation.

For example for Android:&nbsp;[Configure Session Replay Classic for Android — Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/digital-experience/session-replay/session-replay-android)

---

<div class="post-metadata">

**Author:** ![Conal\_Buchanan1](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Conal\_Buchanan1](https://community.dynatrace.com/u/Conal_Buchanan1)\
**Post date:** [April 12, 2023, 9:29am UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/5 "2023-04-12T09:29:25Z")

</div>

Thank you for the documentation.

There are a few points I’m unsure of.

I’ve noticed in testing that sometimes the recording doesn’t show the settings I’ve used.  
For instance I set safe() mode but the recording is still masking at safest() level.

Is there a way to read what the current configuration is?  
Is it better to call at startup or when the user opts in?

---

<div class="post-metadata">

**Author:** ![carlos\_munoz](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@carlos\_munoz](https://community.dynatrace.com/u/carlos_munoz)\
**Post date:** [April 12, 2023, 10:01am UTC](https://community.dynatrace.com/t/mobile-application-session-replay-and-masking/39021/6 "2023-04-12T10:01:17Z")

</div>

As documented:

- **Safest** —all the editable texts fields, images, labels, web views, and switches are masked.
- **Safe** —all the editable texts fields are masked.
- **Custom** —by default, masks the same elements as&nbsp; **Safest** , but you can decide exactly which app components or views should be masked.

If you set the masking at the middle of a session, the first half will be SAFEST and the second half will be the new configuration. So the masking is only applied for events produced since the set of the new configuration, but not backwards.

It’s not possible to read the current Masking configuration. There can be only set. Sorry for that.  
We usually recommend to set up the masking at the very beginning of the startup. You can also wait for the opt in and apply the masking based on it.
