# Hybrid mobile app monitoring with Dynatrace

**URL:** <https://community.dynatrace.com/t/hybrid-mobile-app-monitoring-with-dynatrace/22037>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring\
**Created:** [September 24, 2019, 5:08am UTC](https://community.dynatrace.com/t/hybrid-mobile-app-monitoring-with-dynatrace/22037 "2019-09-24T05:08:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh230591](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/suresh230591/32/280_2.png) [@suresh230591](https://community.dynatrace.com/u/suresh230591)\
**Post date:** [September 24, 2019, 5:08am UTC](https://community.dynatrace.com/t/hybrid-mobile-app-monitoring-with-dynatrace/22037/1 "2019-09-24T05:08:49Z")

</div>

Hi,

We are using dynatrace Gradle plugin to instrument our mobile app which is based on react native framework. However, all the user actions are not captured by this method. It only capture native app actions. There are no XHR calls captured from web view.

We are thinking to make use of manual JS Injection like we do for web app to capture xhr calls. In this way we will be having to application one for native action (where the traffic come from auto instrumentation) and another one for Web view (where traffic come from manually JS injected pages). We tried this and it captured few XHR calls from web view but not all.

Is this correct or acceptable approach?

Is there any other way to capture the XHR calls from web view?

Thanks

Suresh

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [September 24, 2019, 6:26am UTC](https://community.dynatrace.com/t/hybrid-mobile-app-monitoring-with-dynatrace/22037/2 "2019-09-24T06:26:18Z")

</div>

If your hybrid app uses cordova framework than you may be able to use this plugin:

[https://www.npmjs.com/package/dynatrace-cordova-plugin](https://www.npmjs.com/package/dynatrace-cordova-plugin)

If you are not using cordova, you should try manual instrumentation. The issue is that, dynatrace by default catch only user actions that results with WebRequest. If you have some 3rd party framework that is making http requests it is possible that by default you will not see those actions and you will have to create custom user actions using adk.

Sebastian

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [September 24, 2019, 6:56am UTC](https://community.dynatrace.com/t/hybrid-mobile-app-monitoring-with-dynatrace/22037/3 "2019-09-24T06:56:08Z")

</div>

Ok just for clarification: You have a React Native app and this application uses a real webview additionally besides the React stuff? We currently have an EAP running for React Native where you get more insight but we didn’t test the additional webview yet. (But I Imagine that after including the JSAgent, things work pretty good)

> **[@dynatrace/react-native-plugin](https://www.npmjs.com/package/@dynatrace/react-native-plugin)**
>
> This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.. Latest version: 2.349.1, last published: 7 days ago. Start using @dynatrace/react-native-plugin in your project by running \`npm i...
