<?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>article Download the javascript agent locally and build the cordova application in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Download-the-javascript-agent-locally-and-build-the-cordova/ta-p/201926</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;&lt;STRONG&gt;Why download the js agent locally?&lt;BR /&gt;&lt;/STRONG&gt;In some cases, there might be connectivity issues/limitations that prevent the successful download of the javascript agent (ruxitagentjs). In this case, you can save the script locally and build the application accordingly.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here are the steps to do so:&lt;/STRONG&gt;&lt;BR /&gt;1. You can download the script/file from the web application via the WebUI or API. If via UI you can find it under the &lt;STRONG&gt;W&lt;/STRONG&gt;&lt;STRONG&gt;eb Application -&amp;gt; Settings -&amp;gt; Setup.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-10 at 2.22.55 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9314iAC310942AF4CBD93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-01-10 at 2.22.55 pm.png" alt="Screenshot 2023-01-10 at 2.22.55 pm.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;BR /&gt;Note: This application must be the matching web application for your hybrid/mobile application&lt;BR /&gt;&lt;BR /&gt;2. Save the file locally (in any directory).&amp;nbsp;&lt;SPAN&gt;Note that you can name the file whatever you want but the file and directory that you use needs to exist. The file downloaded from the WebUI will be named&amp;nbsp;&lt;/SPAN&gt;jsSnippet.txt&lt;SPAN&gt;&amp;nbsp;by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. There are 2 ways to build the app:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Via the custom configurations in the dynatrace.config.js. Your config.js will look like the screenshot below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-10 at 2.52.29 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9315iE7883E1F1A3231C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-01-10 at 2.52.29 pm.png" alt="Screenshot 2023-01-10 at 2.52.29 pm.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Then you can build the application as you normally would by running "&lt;STRONG&gt;cordova build android/ios&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Via custom Command Line Interface (CLI) arguments:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;cordova build android &lt;SPAN&gt;--jsagent=C:/path/to/jsSnippet.txt&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;If both&amp;nbsp; custom CLI arguments and custom configuration arguments are used, custom CLI arguments will be used.&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 12 Apr 2023 00:00:00 GMT</pubDate>
    <dc:creator>yngwie_lucero</dc:creator>
    <dc:date>2023-04-12T00:00:00Z</dc:date>
    <item>
      <title>Download the javascript agent locally and build the cordova application</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Download-the-javascript-agent-locally-and-build-the-cordova/ta-p/201926</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;P&gt;&lt;STRONG&gt;Why download the js agent locally?&lt;BR /&gt;&lt;/STRONG&gt;In some cases, there might be connectivity issues/limitations that prevent the successful download of the javascript agent (ruxitagentjs). In this case, you can save the script locally and build the application accordingly.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here are the steps to do so:&lt;/STRONG&gt;&lt;BR /&gt;1. You can download the script/file from the web application via the WebUI or API. If via UI you can find it under the &lt;STRONG&gt;W&lt;/STRONG&gt;&lt;STRONG&gt;eb Application -&amp;gt; Settings -&amp;gt; Setup.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-10 at 2.22.55 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9314iAC310942AF4CBD93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-01-10 at 2.22.55 pm.png" alt="Screenshot 2023-01-10 at 2.22.55 pm.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;BR /&gt;Note: This application must be the matching web application for your hybrid/mobile application&lt;BR /&gt;&lt;BR /&gt;2. Save the file locally (in any directory).&amp;nbsp;&lt;SPAN&gt;Note that you can name the file whatever you want but the file and directory that you use needs to exist. The file downloaded from the WebUI will be named&amp;nbsp;&lt;/SPAN&gt;jsSnippet.txt&lt;SPAN&gt;&amp;nbsp;by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. There are 2 ways to build the app:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Via the custom configurations in the dynatrace.config.js. Your config.js will look like the screenshot below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-10 at 2.52.29 pm.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9315iE7883E1F1A3231C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-01-10 at 2.52.29 pm.png" alt="Screenshot 2023-01-10 at 2.52.29 pm.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Then you can build the application as you normally would by running "&lt;STRONG&gt;cordova build android/ios&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Via custom Command Line Interface (CLI) arguments:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;cordova build android &lt;SPAN&gt;--jsagent=C:/path/to/jsSnippet.txt&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;If both&amp;nbsp; custom CLI arguments and custom configuration arguments are used, custom CLI arguments will be used.&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Apr 2023 00:00:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Download-the-javascript-agent-locally-and-build-the-cordova/ta-p/201926</guid>
      <dc:creator>yngwie_lucero</dc:creator>
      <dc:date>2023-04-12T00:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Download the javascript agent locally and build the cordova application</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Download-the-javascript-agent-locally-and-build-the-cordova/tac-p/212130#M215</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/24673"&gt;@yngwie_lucero&lt;/a&gt;&amp;nbsp;Thank you for sharing this&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 19:28:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Download-the-javascript-agent-locally-and-build-the-cordova/tac-p/212130#M215</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-05-12T19:28:41Z</dc:date>
    </item>
  </channel>
</rss>

