You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/11 22:30:22 UTC

[GitHub] [cordova-plugin-device] guylando opened a new issue #94: Feature request: get original user agent.

guylando opened a new issue #94: Feature request: get original user agent.
URL: https://github.com/apache/cordova-plugin-device/issues/94
 
 
   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

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org