UIWebView APIs Deprecated Issue While build iOS App submission

I have developed a website and work great in Android and iOS simulator.

but when I submit the app to “App Store”. I got error Like UIWebView APs depreciation issue.

So, I have removed the plugins the uses UIWebView. but Still, I could see “UIWebView” instance in app.js.

Screen Shot 2020-08-10 at 10.52.01 PM

Below are the plugin I am using currently
cordova-plugin-camera 4.1.0 “Camera”
cordova-plugin-cocoapod-support 1.6.2 “Cordova CocoaPods Dependency Support”
cordova-plugin-file 6.0.2 “File”
cordova-plugin-imagepicker 1.1.0 “ImagePicker”
cordova-plugin-keyboard 1.2.0 “Keyboard”
cordova-plugin-simple-image-resizer 0.1.1 “Image Resizer”
cordova-plugin-smtp-client 2.0.11 “SMTP-Client”
cordova-plugin-whitelist 1.3.4 “Whitelist”

I am using [email protected]

I had tried with [email protected] and cordova-plugin-wkwebview-engine as well.

Still getting UIWebView issue.

Can anyone help me to solve this issue.


use the latest version of cordova cli and ios 6.1 (they removed UIwebview code in this version)

thank you

Yes. I am using.

cordova 10.0.0
[email protected]

There is a config.xml setting you have to add, which rules out all UIWebView references at compile time:

<preference name="WKWebViewOnly" value="true" />

Please check the cordova blog for reference and full example:

As I have used latest version of [email protected]

This config.xml code is not working.

Anyway, I have fixed the issue by removing all the existing plugins. Re-added one by one.

1 Like

would you mind share, which plugin was having that uiwebview code?

thank you