IOS Cordova UserAgent issue with inAppBrowser

Viewed 907

I would like to change the UserAgent in my Cordova app. In order to do this, I added this preference in the config.xml:

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

It works perfectly on Android, but on IOS when I use the inAppBrowser plugin my userAgent setting changes and I have this one :

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

It seems like the InAppBrowser plugin erase my previous settings. Do you know how can I bypass this and keep my userAgent setting? Or how can I set an UserAgent with the InAppBrowser plugin?

0 Answers
Related