apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 986 forks source link

AppStore Rejection due to UIWEBVIEW? #1008

Closed chwahab closed 3 years ago

chwahab commented 3 years ago

Hi, Is this issue resolved in 6.11 ? https://cordova.apache.org/howto/2020/03/18/wkwebviewonly.html

In your blog, your team mentioned that in feature everything will be replaced with WKWebView. Is 6.1.1 is candidate release for that ? Or should I still follow these instructions mentioned in your blog https://cordova.apache.org/howto/2020/03/18/wkwebviewonly.html

breautek commented 3 years ago

The WKWebViewOnly flag is only configurable in cordova-ios@5.1.1.

In cordova-ios@6 the UIWebView has been completely removed and thus default webview is the WKWebView, effectively hard-coding WKWebViewOnly flag to true.

As far as the Apache codebase goes, you'll need to have the following:

cordova-ios@6

If for some reason you cannot yet upgrade to cordova-ios@6, then read further.

cordova-ios@5

Note on other plugins

It is possible that other third-party plugins may also include references of the UIWebView leading to app store rejection. This isn't an exhaustive list but some known plugins are:

These plugins if your app uses them will also need to be updated.

I invite you to our slack for further assistance.