When I’m uploading a build to AppStoreConnect (to test it via TestFlight for example), I’m getting the well known deprecation message:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of new apps that use UIWebView APIs starting from April 2020. See UIWebView | Apple Developer Documentation for more information.
However I have followed all the instructions (e.g. from the official Ionic Blog) and don’t know what I could have missed.
What I did:
Updated all cordova plugins to the latest version (e.g. cordova-plugin-ionic-webview is now on v4.1.3; cordova-plugin-inappbrowser is on v3.2.0)
Checked Cordova Platform (it is ios 5.1.1 )
Made sure that I have <preference name="WKWebViewOnly" value="true"/> in my config.xml
Ran ionic cordova prepare ios and ionic cordova build ios
I still get the deprecation message, I already tried removing the whole ios platform and adding it again afterwards, that didn’t help.
Unfortunately I can’t tell which of your plugins is responsible for the deprecation message.
My best bet would be one of the “non-Ionic” or even deprecated plugins you’re using.
What I did was:
Do a research if one of your plugins is referencing to UiWebView.
Check the plugin’s repositories and check the latest updates (plugins which haven’t been updated for three years probably won’t have a fix for the UiWebView.)
Create a new Ionic app and install the plugins you have used one by one (or maybe five at once), submit them and identify which is causing the issue.
I know it’s annoying and takes time, but I fear there’s no quicker way.
@keber Can you please tell how it solved I used Cordova PayPal plugin: com.paypal.cordova.mobilesdk and I am getting this warning and can’t upload build as well to iTunes.
Unfortunately the Cordova PayPal plugin is deprecated, therefore don’t expect a fix.
Currently there’s no solution other than switching to a different payment provider such as BrainTree (which supports PayPal) or Stripe.
Oh, that doesn’t sound good. I didn’t try BrainTree yet but it’s praised as a working solution (at least in the Ionic docs). Let’s hope there are updates very soon!
As of December 2020, we can’t even update applications using the deprecated UiWebView.
This is my cordova plugin list with its version. can you please help me to find the UIWebView using plugin. I am trying to solve from last 3 days but not getting success. Thanks in advance
“cordova-admob-sdk”: “^0.24.1”,
“cordova-android”: “^8.1.0”,
“cordova-ios”: “^5.1.1”,
“cordova-plugin-admob-free”: “^0.27.0”,
“cordova-plugin-appavailability”: “^0.4.2”,
“cordova-plugin-apprate”: “^1.5.0”,
“cordova-plugin-dialogs”: “^2.0.2”,
“cordova-plugin-geolocation”: “^4.0.2”,
“cordova-plugin-inappbrowser”: “^4.0.0”,
“cordova-plugin-ionic-webview”: “^5.0.0”,
“cordova-plugin-market”: “^1.2.0”,
“cordova-plugin-nativestorage”: “^2.3.2”,
“cordova-plugin-network-information”: “^2.0.2”,
“cordova-plugin-wkwebview-engine”: “^1.2.1”,
“cordova-plugin-x-socialsharing”: “^5.6.8”