<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map mobile and web sessions in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271773#M6792</link>
    <description>&lt;P&gt;Thanks Matthias for the answer but i could not find the result that i wanted., yet&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me explain better what i want to do.&lt;BR /&gt;I have a web page that will be access by web view in mobile and browser.&lt;BR /&gt;I would like to map the mobile session to the web session.&lt;BR /&gt;But this not always happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having this in consideration i still need to have the&amp;nbsp;&lt;SPAN&gt;Hybrid Monitoring configuration flag?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This means that i have to add this to code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;DynatraceConfigurationBuilder("&amp;lt;YourApplicationID&amp;gt;", "&amp;lt;ProvidedBeaconURL&amp;gt;")&lt;BR /&gt;.withHybridMonitoring(true)&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#enable-hybrid-application-monitoring" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#enable-hybrid-application-monitoring&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 18:10:44 GMT</pubDate>
    <dc:creator>rdinis</dc:creator>
    <dc:date>2025-03-06T18:10:44Z</dc:date>
    <item>
      <title>Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271383#M6784</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Im trying to learn the Dynatrace capacities with web and mobile app, so i build something to play &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Web application: easytravel on a vm in linux with oneagent&lt;/LI&gt;
&lt;LI&gt;Mobile application: Android with Kotlin with a webview&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So, i have this code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;    // Initializes and configures WebView
    private fun setupWebView() {
        val myWebView: WebView = findViewById(R.id.main_webview)
        Dynatrace.instrumentWebView(myWebView)
        myWebView.settings.javaScriptEnabled = true
        myWebView.loadUrl("http://192.168.0.102:8079") // ez travel on vm


        binding.mainWebview.webViewClient = object : WebViewClient() {
            override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean {
                return false // Ensures URLs open inside WebView, NOT Chrome
            }
        }
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have mobile and web sessions, but they are splited, i want to map mobile to web sessions so i follow this &lt;A href="https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#instrument-webview" target="_self"&gt;documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Can I have some lights why Im not able to map sessions?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;RD&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 10:53:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271383#M6784</guid>
      <dc:creator>rdinis</dc:creator>
      <dc:date>2025-03-03T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271496#M6788</link>
      <description>&lt;P&gt;Hey RD,&lt;/P&gt;&lt;P&gt;Usually auto instrumentation would take care for you so you don't need to call instrumentWebView. This call also only adds the JavaScript interface. Still you need to use the Hybrid Monitoring configuration flag. Did you do that? Additionally one thing that you are probably missing is setting the configuration for domains. The Android agent doesn't know that your VM is on 192.168.0.102, so you need to configure this domain in order for the cookies to be set there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cookies (dtAdk) will allow the session merge.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 08:26:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271496#M6788</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2025-03-04T08:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271773#M6792</link>
      <description>&lt;P&gt;Thanks Matthias for the answer but i could not find the result that i wanted., yet&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me explain better what i want to do.&lt;BR /&gt;I have a web page that will be access by web view in mobile and browser.&lt;BR /&gt;I would like to map the mobile session to the web session.&lt;BR /&gt;But this not always happen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having this in consideration i still need to have the&amp;nbsp;&lt;SPAN&gt;Hybrid Monitoring configuration flag?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This means that i have to add this to code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;DynatraceConfigurationBuilder("&amp;lt;YourApplicationID&amp;gt;", "&amp;lt;ProvidedBeaconURL&amp;gt;")&lt;BR /&gt;.withHybridMonitoring(true)&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#enable-hybrid-application-monitoring" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#enable-hybrid-application-monitoring&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 18:10:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271773#M6792</guid>
      <dc:creator>rdinis</dc:creator>
      <dc:date>2025-03-06T18:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271839#M6794</link>
      <description>&lt;P&gt;&lt;SPAN&gt;DynatraceConfigurationBuilder is something that you are using when doing a manual startup. So you are doing manual starting?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But in general your answer is correct. Additionally as said above you also need to call the builder API for adding domains.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:35:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271839#M6794</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2025-03-07T09:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271921#M6800</link>
      <description>&lt;P&gt;Ok, lets see the key points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Automatic instrumentation of webviews with oneagent (Web Aplication)&lt;UL&gt;&lt;LI&gt;Domain equals&amp;nbsp;&lt;SPAN&gt;192.168.0.102&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Mobile instrumentation with wizard Android - groovy&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My build gradle of the project:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;dynatrace {
    configurations {
        sampleConfig {
            autoStart {
                applicationId 'applicationId'
                beaconUrl 'https://beaconUrl.bf.dynatrace.com/mbeacon'
            }
            userOptIn false
            agentBehavior.startupLoadBalancing true
            sessionReplay.enabled false
            exclude.classes "com.dynatrace.sample.android.app.MinimalActivity"
            hybridWebView {
                enabled true
                domains ["192.168.0.102"]
            }
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Code&lt;/P&gt;&lt;LI-CODE lang="java"&gt;    // Initializes and configures WebView
    private fun setupWebView() {
        DynatraceConfigurationBuilder("appID", "https://bc.bf.dynatrace.com/mbeacon")
            .withHybridMonitoring(true)
            .withMonitoredDomains("192.168.0.102")
            .buildConfiguration()
        val myWebView: WebView = findViewById(R.id.main_webview)
        Dynatrace.instrumentWebView(myWebView)
        myWebView.settings.javaScriptEnabled = true
        myWebView.loadUrl("http://192.168.0.102:9200/")


        binding.mainWebview.webViewClient = object : WebViewClient() {
            override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean {
                return false // Ensures URLs open inside WebView, NOT Chrome
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I have tried every combination but it seems that the problem is between the keyboard and the pc&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":eyes:"&gt;👀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 01:53:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271921#M6800</guid>
      <dc:creator>rdinis</dc:creator>
      <dc:date>2025-03-08T01:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Map mobile and web sessions</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271965#M6801</link>
      <description>&lt;P&gt;The DynatraceConfigurationBuilder is not needed as you are doing auto instrumentation through the build.gradle configuration anyways. Also the instrumentWebview is usually not needed, but not 100% sure because you are excluding the MinimalActivity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, please adapt the configuration&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hybridWebView {
   enabled true
   domains '192.168.0.102'
}&lt;/LI-CODE&gt;&lt;P&gt;In general if you want to add more values it is something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hybridWebView {
    enabled true
    domains '192.168.0.102', '...', '...'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe also add 'debug.agentLogging true' to the configuration so you can see logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No worries. We are getting there. Thanks for your input.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 10:10:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Map-mobile-and-web-sessions/m-p/271965#M6801</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2025-03-10T10:10:51Z</dc:date>
    </item>
  </channel>
</rss>

