You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kevin Simpson (JIRA)" <ji...@apache.org> on 2013/05/08 22:17:15 UTC

[jira] [Created] (CB-3360) Set custom InAppBrowser user-agent

Kevin Simpson created CB-3360:
---------------------------------

             Summary: Set custom InAppBrowser user-agent
                 Key: CB-3360
                 URL: https://issues.apache.org/jira/browse/CB-3360
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Android
            Reporter: Kevin Simpson
            Assignee: Joe Bowser
            Priority: Minor


Currently you can set a custom user-agent for the main Cordova webview by overriding the init method for the DroidGap class. However, when opening a page in the InAppBrowser, that webview will still contain the default user-agent.

There are two solutions that I have thought of to this:

1. Set the user-agent of the InAppBrowser webview to whatever the user-agent in the Cordova webview is set to. (This is what I am currently doing, as it was a one line change, but it requires rebuilding Cordova manually)

2. Have some sort of configuration option to set the user-agent for the InAppBrowser. This would allow a different user-agent from the main webview, but is also a more involved change.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira