apache / apache/cordova-plugin-device

Feature request: get original user agent.

Open
#94 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
394
Forks
424
PR merge metrics
No merged PRs in 30d

Description

The browser user agent has a lot of information. If it was overriden by OverrideUserAgent cordova preference then there is no way to get the original user agent from javascript. It would be nice if this plugin would also have a property for the original user agent.

### ios possible implementation
https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/Public/CDVUserAgentUtil.m#L37

### android possible implementation
```
String userAgent = System.getProperty( "http.agent" );
```
https://stackoverflow.com/questions/4103963/is-there-a-way-to-obtain-the-default-user-agent-string-aside-from-webview-getset/10248817#10248817

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.