Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability #114

Open
engine9012 opened this issue May 22, 2020 · 0 comments

Comments

@engine9012
Copy link

你的运行环境
插件版本: 3.7.4
平台(Android / iOS): ios
Cordova version (cordova -v): 8.1.2 ([email protected])
Cordova platform version (cordova platform ls):
ios 5.1.1
Ionic Version (if using Ionic)
ionic 3
期望效果
正常提交APP store,不会提示 [ITMS-90809: Deprecated API Usage],错误

实际效果
提交app store失败,提示

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability
重现步骤
1.cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey --variable CHANNEL=your_channel
2.打包提交至app store
背景
cordova-ios 更新至5.1.1
在config.xml中添加

<preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
Debug logs
没有任何报错日志,通过以下命令查包含UIWebView得到文件

grep -r UIWebView .
查询得到以下结果

/Plugins/jpush-phonegap-plugin/JPushPlugin.m:- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView{
以上方法应用了UIWebView

希望能够解决下,毕竟4月份之后app store都会拒绝应用了UIWebView的新应用,老应用在12月份之后 也会拒绝提交

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant