<?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 Hi Paul, thank again for all in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084032#M62724</link>
    <description>&lt;P&gt;Hi Paul, thank again for all the replies, I've been racking my brains over this and tried many different ways to no avail.&lt;/P&gt;

&lt;P&gt;Do you think that I can do something like this...?&lt;/P&gt;

&lt;P&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" /&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;but instead of --disable-pull-to-refresh-effect&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Something like "--set-user-agent foobar"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="&lt;CODE&gt;--set-user-agent MyUserAgent&lt;/CODE&gt;" /&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Would your devs know about that, and if that would work, is there a list of xwalk commands somewhere that I can reference, because I couldn't find anything on crosswalk-project.org. In other words I'm asking if i can set the user agent via the crosswalk &lt;EM&gt;&lt;STRONG&gt;command line&lt;/STRONG&gt;&lt;/EM&gt; within the intelxdk because crosswalk seems to be overwriting the cordova webview user agent with it's own as you mentioned but then it's not allowing me to edit it.&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2016 20:55:55 GMT</pubDate>
    <dc:creator>Isaiah_L_</dc:creator>
    <dc:date>2016-01-15T20:55:55Z</dc:date>
    <item>
      <title>Change user Agent in config</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084024#M62716</link>
      <description>&lt;P&gt;Hi folks, can anyone please describe how i would be able to change the user agent, outside of my js code, that is in the configuration file. How exactly would i do that.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:36:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084024#M62716</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-12T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Not sure what "user agent"</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084025#M62717</link>
      <description>&lt;P&gt;Not sure what "user agent" you are referring to. What are you trying to accomplish?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 18:49:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084025#M62717</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-12T18:49:16Z</dc:date>
    </item>
    <item>
      <title>Well i mean the browser, so</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084026#M62718</link>
      <description>&lt;P&gt;Well i mean the browser, so the webkit browser. I have a php server taking input, from my app but i want to know if someone is trying to access the server from their, desktop, on chrome, firefox, ie, to send wrong data (cheaters) or just their regular phone tablet browser and take note of it. I know its not full proof to avoid cheaters but with some of the other deturrents in place this will help.&lt;/P&gt;

&lt;P&gt;Soin other words i want to change the user agent of the browser in my app to xyyz or whatever so that when my app connects to the server my server can check and say is this, chrome, firefox, webkit etc, and take appropriate action.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 22:28:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084026#M62718</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-12T22:28:34Z</dc:date>
    </item>
    <item>
      <title>I tried</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084027#M62719</link>
      <description>&lt;P&gt;I tried&lt;/P&gt;

&lt;PRE class="lang-xml prettyprint prettyprinted" style=""&gt;&lt;CODE&gt;&lt;SPAN class="tag"&gt;&amp;lt;preference&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn"&gt;name&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv"&gt;"OverrideUserAgent"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="atn"&gt;value&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv"&gt;"MyCordovaApp/1.2.3"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="tag"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;but it didnt seem to work...&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Also I don't want to use something like this&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/LouisT/cordova-useragent" target="_blank"&gt;https://github.com/LouisT/cordova-useragent&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Because I don't want the call to appear in my javascript.&lt;/P&gt;

&lt;P&gt;also see the last two bullet points on this page regarding this...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://cordova.apache.org/docs/en/5.1.1/guide/platforms/android/config.html" target="_blank"&gt;http://cordova.apache.org/docs/en/5.1.1/guide/platforms/android/config.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 06:09:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084027#M62719</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-14T06:09:00Z</dc:date>
    </item>
    <item>
      <title>Did you put that preference</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084028#M62720</link>
      <description>&lt;P&gt;Did you put that preference in the intelxdk.config.additions.xml file? That's where it needs to go...&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:28:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084028#M62720</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-14T17:28:03Z</dc:date>
    </item>
    <item>
      <title>Yes thats where I put it but</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084029#M62721</link>
      <description>&lt;P&gt;Yes thats where I put it but it still says the same thing. I will post my code and the compile log when I get home today.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:46:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084029#M62721</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-14T17:46:50Z</dc:date>
    </item>
    <item>
      <title>Update:</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084030#M62722</link>
      <description>&lt;PRE&gt;Update:
Im using &amp;lt;preference name="OverrideUserAgent" value="MyCordovaApp/1.2.3" /&amp;gt; in my intelxdk.config.additions.xml&lt;/PRE&gt;

&lt;P&gt;I just thought I'd try this, and when I compile in just "Android" build it works perfectly... but unfortunately I am not building with plain cordova webview I need to use the crosswalk webview.... Have any idea why it works on "Android" build but not on "Crosswalk for Android"?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 02:32:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084030#M62722</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-15T02:32:42Z</dc:date>
    </item>
    <item>
      <title>Make sure you're using CLI 5</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084031#M62723</link>
      <description>&lt;P&gt;Make sure you're using CLI 5.1.1 for your build system to make that work. It won't work with the CLI 4.1.2 Crosswalk builders due to the way Crosswalk is built in that system. However, even with that, it might not work with Crosswalk because Crosswalk replaces the native webview, and the mechanism you're using might get overwritten by the Crosswalk webview... I don't know how that preference works, so you'll have to do some experimenting.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 18:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084031#M62723</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-15T18:23:00Z</dc:date>
    </item>
    <item>
      <title>Hi Paul, thank again for all</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084032#M62724</link>
      <description>&lt;P&gt;Hi Paul, thank again for all the replies, I've been racking my brains over this and tried many different ways to no avail.&lt;/P&gt;

&lt;P&gt;Do you think that I can do something like this...?&lt;/P&gt;

&lt;P&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" /&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;but instead of --disable-pull-to-refresh-effect&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Something like "--set-user-agent foobar"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="&lt;CODE&gt;--set-user-agent MyUserAgent&lt;/CODE&gt;" /&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Would your devs know about that, and if that would work, is there a list of xwalk commands somewhere that I can reference, because I couldn't find anything on crosswalk-project.org. In other words I'm asking if i can set the user agent via the crosswalk &lt;EM&gt;&lt;STRONG&gt;command line&lt;/STRONG&gt;&lt;/EM&gt; within the intelxdk because crosswalk seems to be overwriting the cordova webview user agent with it's own as you mentioned but then it's not allowing me to edit it.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 20:55:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084032#M62724</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-15T20:55:55Z</dc:date>
    </item>
    <item>
      <title>I would try this:</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084033#M62725</link>
      <description>&lt;P&gt;I would try this:&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="--user-agent MyUserAgentString" /&amp;gt;&lt;/PRE&gt;

&lt;P&gt;See this list of Chromium command-line options &amp;gt; &lt;A href="http://peter.sh/experiments/chromium-command-line-switches/#user-agent" target="_blank"&gt;http://peter.sh/experiments/chromium-command-line-switches/#user-agent&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 00:07:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084033#M62725</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-16T00:07:03Z</dc:date>
    </item>
    <item>
      <title>Woe is me... I have literally</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084034#M62726</link>
      <description>&lt;P&gt;Woe is me... I have literally tried every combination of this and nothing seems to work... (excuse me while I go jump off a bridge...)&lt;/P&gt;

&lt;P&gt;I have tried...&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;&amp;lt;&lt;/CODE&gt;&lt;CODE class="keyword"&gt;intelxdk:crosswalk&lt;/CODE&gt; &lt;CODE class="color1"&gt;xwalk-command-line&lt;/CODE&gt;&lt;CODE class="plain"&gt;=&lt;/CODE&gt;&lt;CODE class="string"&gt;"--user-agent MyUserAgentString"&lt;/CODE&gt; &lt;CODE class="plain"&gt;/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;&amp;lt;&lt;/CODE&gt;&lt;CODE class="keyword"&gt;intelxdk:crosswalk&lt;/CODE&gt; &lt;CODE class="color1"&gt;xwalk-command-line&lt;/CODE&gt;&lt;CODE class="plain"&gt;=&lt;/CODE&gt;&lt;CODE class="string"&gt;"--user-agent=MyUserAgentString"&lt;/CODE&gt; &lt;CODE class="plain"&gt;/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;&amp;lt;&lt;/CODE&gt;&lt;CODE class="keyword"&gt;intelxdk:crosswalk&lt;/CODE&gt; &lt;CODE class="color1"&gt;xwalk-command-line&lt;/CODE&gt;&lt;CODE class="plain"&gt;=&lt;/CODE&gt;&lt;CODE class="string"&gt;"--user-agent='MyUserAgentString'"&lt;/CODE&gt; &lt;CODE class="plain"&gt;/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;&amp;lt;&lt;/CODE&gt;&lt;CODE class="keyword"&gt;intelxdk:crosswalk&lt;/CODE&gt; &lt;CODE class="color1"&gt;xwalk-command-line&lt;/CODE&gt;&lt;CODE class="plain"&gt;=&lt;/CODE&gt;&lt;CODE class="string"&gt;"--user-agent = MyUserAgentString"&lt;/CODE&gt; &lt;CODE class="plain"&gt;/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;and just about every other variation that I can think of to no avail... I'm at a wall!&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;I might add that when I add other calls to the command line like...&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;intelxdk:crosswalk xwalk-command-line="--show-fps-counter" /&amp;gt;&amp;nbsp; they work fine, So it's not that I'm as dumb as a rock, user-agent just isn't working for some reason... :((&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 00:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084034#M62726</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-17T00:51:00Z</dc:date>
    </item>
    <item>
      <title>Hi again Paul, do you think</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084035#M62727</link>
      <description>&lt;P&gt;Hi again Paul, do you think the Devs would know why this isn't working?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 22:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084035#M62727</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-18T22:53:25Z</dc:date>
    </item>
    <item>
      <title>My suspicion is that it</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084036#M62728</link>
      <description>&lt;P&gt;My suspicion is that it "works" but that the Crosswalk library is overwriting it because they modify the userAgent string to include the Crosswalk version number (e.g., "... Crosswalk/15.44.384.13 ..."). We only provide a way to include the Crosswalk library as part of your build, we don't actually own that project (it's an open source project). I think your best bet would be to file a Jira with the Crosswalk project letting them know that this does not work. Unfortunately, they will only fix it in the next version, so it will be a while before you would see it coming through the XDK...&lt;/P&gt;

&lt;P&gt;BTW, there's no guarantee that EVERY option in that Chromium command-line option works with Crosswalk, because there's no guidance in that list regarding which versions of Chromium support which versions of the the command-line switches... :(&lt;/P&gt;

&lt;P&gt;Another thought, you may not want to use the command-line option, anyway, because you said you didn't want the replacement userAgent string in your JavaScript (I assume because you want to hide it). Every command-line option you add gets put inside a clear text file in the app package, so that's fairly easy to inspect if you have a copy of the APK, so this approach may not meet your needs. In which case you might want to make the request to the Crosswalk team (via their Jira system) to be one that honors the original approach you were taking, using the config.xml preference option.&lt;/P&gt;

&lt;P&gt;Or, make a custom version of that plugin you found, and hide the agent string inside the Java part of that plugin... You could then add your custom variant of that plugin as a "local" plugin into your project.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 23:52:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084036#M62728</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-01-19T23:52:04Z</dc:date>
    </item>
    <item>
      <title>Thnks Paul, yes you're right,</title>
      <link>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084037#M62729</link>
      <description>&lt;P&gt;Thnks Paul, yes you're right, they are in plain text just sitting there...&lt;/P&gt;

&lt;P&gt;I was frustrated that i wasted four days on this but then i accidentally read one of your post about something else and realized that my gpu acceleration was actually off, i changed the settings to turn it on and now my app is blazing fast... no lag at all, if i wasnt searching for a solution to this problem i would have never stumbled upon this even bigger issue that i didnt even realized existed. So thank you!&lt;/P&gt;

&lt;P&gt;So i will go with your suggestions regarding useragent but to tell the truth, it all seems insignificant now in retrospect... now that my app feels like king kong's fist. :))&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 00:41:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Change-user-Agent-in-config/m-p/1084037#M62729</guid>
      <dc:creator>Isaiah_L_</dc:creator>
      <dc:date>2016-01-20T00:41:02Z</dc:date>
    </item>
  </channel>
</rss>

