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


source to share





All Articles