【问题标题】:Cordova ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer acceptedCordova ITMS-90809:不推荐使用的 API - 不再接受使用 UIWebView 的新应用程序
【发布时间】:2021-08-10 22:38:39
【问题描述】:

尝试将我的应用发送到应用商店时,我收到以下消息: ITMS-90809:不推荐使用的 API - 不再接受使用 UIWebView 的新应用程序。相反,使用 WKWebView 来提高安全性和可靠性。了解更多信息 (https://developer.apple.com/documentation/uikit/uiwebview)。

但我的模拟器日志显示

2021-05-21 14:05:47.333578-0300 xxx[21780:432427] CDVWKWebViewEngine will reload WKWebView if required on resume

**2021-05-21 14:05:47.333667-0300 xxx[21780:432427] Using WKWebView**

2021-05-21 14:05:47.333880-0300 xxx[21780:432427] [CDVTimer][console] 0.035048ms

2021-05-21 14:05:47.334027-0300 xxx[21780:432427] [CDVTimer][handleopenurl] 0.043988ms


2021-05-21 14:05:47.334811-0300 xxx[21780:432427] Unlimited access to network resources

2021-05-21 14:05:47.334912-0300 xxx[21780:432427] [CDVTimer][intentandnavigationfilter] 0.808954ms

2021-05-21 14:05:47.335034-0300 xxx[21780:432427] [CDVTimer][gesturehandler] 0.040054ms

2021-05-21 14:05:47.335149-0300 xxx[21780:432427] WARNING: NativeXHR is allowing untrusted certificates due to preference AllowUntrustedCerts=on

2021-05-21 14:05:47.335628-0300 xxx[21780:432427] [CDVTimer][cdvwkwebviewfilexhr] 0.518084ms

2021-05-21 14:05:47.335701-0300 xxx[21780:432427] [CDVTimer][TotalPluginStartup] 1.880050ms

2021-05-21 14:05:47.447104-0300 xxx[21780:432427] WF: === Starting WebFilter logging for process xxx

2021-05-21 14:05:47.447297-0300 xxx[21780:432427] WF: _userSettingsForUser : (null)

2021-05-21 14:05:47.447437-0300 xxx[21780:432427] WF: _WebFilterIsActive returning: NO

我已经尝试更新我的插件,插件列表是:

cordova-plugin-cleartext 1.0.0 "CordovaPluginsCleartext"

cordova-plugin-device 2.0.3 "Device"

cordova-plugin-network-information 2.0.2 "Network Information"

cordova-plugin-whitelist 1.3.4 "Whitelist"

cordova-plugin-wkwebview-engine 1.2.2 "Cordova WKWebView Engine"

cordova-plugin-wkwebview-file-xhr 3.0.0 "Cordova WKWebView File XHR Plugin"

cordova-sqlite-storage 6.0.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"

也尝试将 wkwebview 添加到 config.xml。

还有什么我可以研究的吗?

谢谢!

【问题讨论】:

    标签: ios xcode cordova cordova-plugins


    【解决方案1】:

    Cordova 已弃用 WKWebView 用法。因此,为了解决这些问题和未来的问题,请将 cordova 版本更新为 10,并将 android/ios 项目更新为最新。

    安卓 9.1 IOS 6.2

    这是弃用消息:https://cordova.apache.org/2021/02/07/deprecate-wkwebview-engine.html

    【讨论】:

    • 试过了。它适用于我的模拟器和我的测试人员,但该应用程序被拒绝并显示“我们在您的应用程序中发现了一个或多个错误。具体来说,当我们尝试创建新帐户时,您的应用程序无限期加载。请查看下面的详细信息并完成下一步。”知道是什么原因造成的吗?
    • @awkngg 这绝对是另一个问题,而不是您在标题中描述的问题。当来自苹果的测试人员尝试在您的应用中创建帐户时,您的应用似乎冻结/崩溃。 Mb,您的服务器、IP 过滤器或其他东西有一些连接限制 - 它可能是一堆东西
    猜你喜欢
    • 2020-09-16
    • 2020-11-19
    • 2020-08-30
    • 2020-12-12
    • 2020-01-03
    • 2020-01-03
    • 2022-01-14
    • 1970-01-01
    相关资源
    最近更新 更多