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/11/14 14:21:24 UTC

[GitHub] [cordova-plugin-inappbrowser] Xample edited a comment on issue #372: OverrideUserAgent changes user agent for Cordova view too

Xample edited a comment on issue #372: OverrideUserAgent changes user agent for Cordova view too
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/372#issuecomment-553908708
 
 
   As platform will use the user agent, you can conditionally set a user agent for iOS and another for Android
   
   config.xml
   ```xml
   <?xml version='1.0' encoding='utf-8'?>
   <widget id="ch.tpg.boldor" version="1.43.4-dev" xmlns="http://www.w3.org/ns/widgets"
       <platform name="android">
           <preference name="OverrideUserAgent" value="Mozilla/5.0 (Linux; Android 9; SM-G960F Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.157 Mobile Safari/537.36" />
       </platform>
       <platform name="ios">
           <preference name="OverrideUserAgent" value="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1" />
   </platform>
   </widget>
   
   ```

----------------------------------------------------------------
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