iOS UIWebView Deprecated API Usage

I’m unable to remove the message below with my builds.

“App updates that use UIWebView will no longer be accepted as of December 2020. Instead, use WKWebView for improved security and reliability”

I have this in my config:

<platform name="ios" >
<preference name="SuppressesLongPressGesture" value="true" />
<preference name="DisallowOverscroll" value="true" />
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">
  <param name="ios-package" value="CDVWKWebViewEngine" />
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<plugin name="cordova-plugin-inappbrowser" version="4.0.0"/>

Your config doesn’t show in the email, is it in your post? (I’m on my phone).

Hi, yes the config code is shown on the post.

Tip: If you’re pasting code, html or config files, surround it by triple back ticks (```) and it will be fomatted properly.

I’m currently trying to narrow down what is causing the error.

I commented out all the plugins and I am activating them one by one, then uploading to the app store to see if I get the error.

FAILED:- So far this plugin causes an error (UIWebView Deprecated):
<plugin name="de.appplant.cordova.plugin.printer" />


<plugin name="cordova-plugin-x-socialsharing" source="npm" /> 
<plugin name="cordova-plugin-inappbrowser" version="4.0.0"/>
<plugin name="cordova-plugin-statusbar" source="npm" />
<plugin name="cordova-plugin-whitelist" source="npm" />
<plugin name='cordova-plugin-splashscreen' source='npm' />
<plugin name="cordova-launch-review" source="npm" />

So it seams the printer plugin was causing the error, now to find a replacement.

If the plugin works but hasn’t been updated in a long time you can check the plugin.xml file under the ios section to get the list of ios files and then scan them for references to UIWebView and then either issue a PR (pull request) on their git repository OR fork the repo and make the changes yourself.

Actually, looks like it was fixed in April 2019…

Hi, the plug in you mention is not the one I had the issue with, i was using

<plugin name="de.appplant.cordova.plugin.printer" />

I have found another one which might be the one you are referring too.

<plugin name="cordova-plugin-printer" />

Although the new one crashes the app when i call the Print function which I’m now trying to workout why.

You must have been using an older fork but either way, glad you got it fixed!