cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-3360) Set custom InAppBrowser user-agent
Date Wed, 18 Mar 2015 17:36:39 GMT


ASF GitHub Bot commented on CB-3360:

GitHub user cjpearson opened a pull request:

    CB-3360: Set custom inappbrowser user agent for android

    This uses the same OverrideUserAgent and AppendUserAgent properties as the pull requests
for cordova-ios and cordova-android.

You can merge this pull request into a Git repository by running:

    $ git pull android-user-agent

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #95
commit ebac47b5619163559faf1ce4eb61ebf75485ef6c
Author: Connor Pearson <>
Date:   2015-03-13T18:12:40Z

    CB-3360: Set custom inappbrowser user agent for android


> Set custom InAppBrowser user-agent
> ----------------------------------
>                 Key: CB-3360
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, BlackBerry, Plugin InAppBrowser, WP8
>    Affects Versions: 2.7.0
>         Environment: iOS, Android, WP8, BlackBerry
>            Reporter: Kevin Simpson
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: Cordova, InAppBrowser, android
> 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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message