# Disabling RUM for Mobile Applications

**URL:** <https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-monitoring, mobile-monitoring, user-sessions\
**Created:** [April 2, 2025, 9:51pm UTC](https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030 "2025-04-02T21:51:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aboud](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Aboud](https://community.dynatrace.com/u/Aboud)\
**Post date:** [April 2, 2025, 9:51pm UTC](https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030/1 "2025-04-02T21:51:00Z")

</div>

We are currently working on automating the enabling and disabling of Real User Monitoring (RUM) for both web and mobile applications in Dynatrace during scheduled maintenance windows.

For web applications, we successfully toggle RUM using the&nbsp;“realUserMonitoringEnabled”&nbsp;parameter in the **API**. However, we have encountered a challenge with&nbsp; **mobile applications** :

- The mobile application API configuration&nbsp; **does not have a parameter similar to** &nbsp;“realUserMonitoringEnabled”&nbsp;to disable RUM.
- The&nbsp; **“costControlUserSessionPercentage”** &nbsp;setting does not allow a value of&nbsp;0, meaning we cannot fully stop RUM for mobile apps during maintenance.

Could you advise on the correct method to&nbsp; **completely disable/enable RUM for mobile applications** &nbsp;during our maintenance periods? Is there an undocumented API parameter or another recommended approach?

---

<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:** [April 3, 2025, 5:37am UTC](https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030/2 "2025-04-03T05:37:40Z")

</div>

Hi!

in Dynatrace you can configure [Maintenance WIndows](https://docs.dynatrace.com/docs/shortlink/maintenance-window), does this not cover your use-case, or why do you want to stop monitoring during those?

---

<div class="post-metadata">

**Author:** ![Aboud](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Aboud](https://community.dynatrace.com/u/Aboud)\
**Post date:** [April 3, 2025, 6:39am UTC](https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030/3 "2025-04-03T06:39:15Z")

</div>

Hello [@Patrick\_H](https://community.dynatrace.com/user/31862)

Our goal is to conserve the DEM license.

We need to optimize our license usage as much as possible across:

- **Synthetic monitoring** (achieved through MW)
- **Web RUM** (managed via API configuration scripts using the parameter “realUserMonitoringEnabled”)
- **Mobile RUM** (no “realUserMonitoringEnabled” parameter found)

---

<div class="post-metadata">

**Author:** ![dominik\_messner](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dominik\_messner](https://community.dynatrace.com/u/dominik_messner)\
**Post date:** [April 3, 2025, 8:32am UTC](https://community.dynatrace.com/t/disabling-rum-for-mobile-applications/51030/4 "2025-04-03T08:32:07Z")

</div>

Hi, you can use the [Settings API](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/settings)&nbsp;for that.

In this case, the schema is [builtin:rum.mobile.enablement](https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/settings/schemas/builtin-rum-mobile-enablement)&nbsp;and you want to modify the “enabled” flag in the “rum” object.
