ITMS-90809: Deprecated API Usage - Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebView as of December 2020. Instead, use WKWebView for improved security and reliability.
I am trying to update an existing app, not a new app. Still I am not able to upload the app. I got this error via email:
We identified one or more issues with a recent delivery for your app, "App Name" 20202.421.1 (6). Please correct the following issues, then upload again.
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
Did Apple change its policy or something? Or do I need to change UIWebView
?
Yes, Apple did change the policies Are you using ionic? if so, install these:
cordova plugin add cordova-plugin-ionic-webview@latest
npm install @ionic-native/ionic-webview
Then add this to your config.xml under ios platform:
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">`
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
Finally run ionic cordova prepare ios
to reflect the changes
then run ionic cordova build ios --prod
PS: Make sure you have only one webview plugin installed.. either this or the 'cordova-webviewengine'. But the above method worked for me and my app is in app store now