goodspeed666 commented on issue #372: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/372#issuecomment-725265866
> As platform will use the user agent, you can conditionally set a user agent for iOS and another for Android > > config.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> > ``` Thank you @Xample. You saved my life ! ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
