Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: Add Setting to Set a Custom User Agent #502

Open
BrandOuellette opened this issue Jul 6, 2019 · 6 comments
Open

Feature Request: Add Setting to Set a Custom User Agent #502

BrandOuellette opened this issue Jul 6, 2019 · 6 comments
Labels

Comments

@BrandOuellette
Copy link

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.

@janpio janpio added the feature label Jul 6, 2019
@BrandOuellette
Copy link
Author

I just looked at the code and it wouldn't take long to add this feature since the InAppBrowser already looks at the OverrideUserAgent preference to set the UserAgent.

@timbru31
Copy link
Member

timbru31 commented Jul 7, 2019

Probably this could be achieved with the PR #363 - maybe you can resurrect this one? ;)

Edit: seems PR #363 is another one of #115

@BrandOuellette
Copy link
Author

It wouldn't be as complicated as #363 but if #363 ever gets merged, it would probably work. Otherwise, this feature would only take a few lines of code for each platform to make it work.

@janpio
Copy link
Member

janpio commented Jul 8, 2019

Let's try to get #363 merged (meaning: tested and reviewed) then.

@HarelM
Copy link

HarelM commented Mar 18, 2022

Isn't this a duplicate of #372 ?

@marcellov7
Copy link

why hasn't it been implemented yet?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants