Dropping UIWebView

I’m running into an issue with iOS and UIWebView. Apple Store Connect is warning that its inclusion will block the app from being uploaded from April 2020. Apparently Cordova iOS 5.1.0 fixes this by using WKWebViewOnly instead.

I think my problem is that I’m using Capacitor (which doesn’t have the same problem) but I’m using a couple of Cordova plugins (BLE and Brightness) as there’s no cap equivalent.

Having done a string search for it in Xcode it appears in:

swiper-bundle
CDVCommandDelegate
CDVUIWebViewDelegate
CDVUserAgentUtil
CapacitorCordova-umbrella

Any idea how to get rid of it before Apple gets rid of my app?

I’d look at the plugins where those strings are referenced and see if they are creating a UIWebview.
It’s important to note, that string references to a UIWebview are not the same as creating a UIWebview, so your search results could be returning some false positives.

1 Like

The only plugins I’m using are:

    "cordova-plugin-ble-central": "1.2.4",
    "cordova-plugin-brightness": "^0.2.0",

Thanks for pointing out the issue of false positives. I read elsewhere in the forum that Apple don’t use a string search but rather check if the app loads UIWebView. So other than changing something, recompiling, uploading to Connect; is there any way of verifying whether or not the issue has been resolved?

At the moment, not really. At least as far as I know.