IOS Cordova UserAgent issue with inAppBrowser

I want to change UserAgent in my Cordova application. To do this, I added this preference in my config.xml file:

<preference name="OverrideUserAgent" value="my_preference" />

It works fine on Android, but on IOS, when I use inAppBrowser , it changes the settings of my userAgent and I have this:

"Mozilla / 5.0 (iPhone, iPhone OS 10_3, like Mac OS X) AppleWebKit / 603.1.30 (KHTML, like Gecko) Mobile / 14E269"

It seems that the InAppBrowser plugin is removing my previous settings. Do you know how I can get around this and keep the userAgent setting? Or how can I install UserAgent with the InAppBrowser plugin?

+3
android ios cordova inappbrowser


source to share


No one has answered this question yet

Check out similar questions:

five
Detecting iOS version number from User Agent using regular expressions
3
iPad vs iPad Mini User Agent
3
Chrome on iOS 8 useragent no longer includes crIOS
3
Is it possible to force cordova inAppBrowser to use Crosswalk webView?
0
Cordova UUID device plugin
0
Inconsistency in useragent IOS
0
Regex exclude from browser inApp using smartbanner.js
0
how to detect from user-agent if the request is coming from android app or android browser
0
Determine iPad version from useragent
0
Cordova app - why iOS changes user agent every time



All Articles
Loading...
X
Show
Funny
Dev
Pics