apache / apache/cordova-plugin-inappbrowser

Feature Request: Add Setting to Set a Custom User Agent

Open
#502 6 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

**Feature Request**

Option to set the User Agent the InAppBrowser uses.

It would be nice if you could set the User Agent you want sent with requests as one of the options passed when opening the InAppBrowser.

I know you can change it in config.xml for the entire Cordova app, but we just want the requests sent in the InAppBrowser to be a custom user agent string.

Contributor guide

Open the contributing guide

Research direction

Start by locating how options passed when opening the InAppBrowser are handled in the Java, Objective-C, and JavaScript parts of the plugin, and compare that with the app-wide config.xml User Agent setting. Done means callers can provide a custom User Agent for InAppBrowser requests without changing the Cordova app's global setting; verify the behavior on the supported mobile platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, javascript, objective-c
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.