2020年4月起App Store将不再接受使用UIWebView的新App,2020年12月起将不再接受使用UIWebView的App更新。
苹果已弃用的UIWebView API嵌入网络内容的APP,所以你提交到商店会被拒绝!
苹果审核被拒原文:
Dear Developer,
We identified one or more issues with a recent delivery for your app, "XXX" XXXX. 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).
Best regards,
The App Store Team
解决方法:
检查你的APP中哪些页面使用了UIWebView 你应该使用 WKWebView 代替。
方法一(全局处理):
配置config.xml,配置是否使用WKWebView
<preference name="useWKWebView" value="true"/> 如果你的config.xml中存在将值false 改为 true
方法二:
在使用api.openWin() 、api.openFrame()、api.openFrameGroup()等方法在参数中 添加 useWKWebView:true 即可。