【问题标题】:Cordova UIWebView APIs Deprecated API UsageCordova UIWebView API 不推荐使用的 API 使用
【发布时间】:2020-01-14 16:17:48
【问题描述】:

我有点困惑,因为当我上传到 App Store 时,我仍然收到 ITMS-90809:已弃用 API 使用警告。我已经将我的 cordova-ios 平台升级到 5.1.1 版,并将我的 InAppBrowser 升级到 3.2.0

这是我的插件列表:

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-statusbar 2.4.3-dev "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4 "Cordova WKWebView Engine"
cordova.plugins.diagnostic 5.0.1 "Diagnostic"

我在 config.xml 中添加了 WKWebViewOnly。这是 ios 的 config.xml

<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <icon height="57" src="res/icon/ios/icon-57.png" width="57" />
    <icon height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
    <icon height="57" src="res/icon/ios/icon-72.png" width="57" />
    <icon height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
    <icon height="1024" src="res/icon/ios/Icon-1024.png" width="1024" />
    <preference name="Orientation" value="portrait" />
    <preference name="KeyboardShrinksView" value="false" />
    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
    <preference name="WKWebViewOnly" value="true" />
</platform>

我不确定我做错了什么。

【问题讨论】:

    标签: ios cordova cordova-ios


    【解决方案1】:

    您能否在您的 xcode 控制台中检查正在加载 WkWebwiew 或 UIWebview 的内容。

    【讨论】:

    • 你能解释一下如何检查 xcode,正在加载哪个?
    • App run chesinapudu console lo kanipistadi bro WkWebwiew na leka UIWebview lo open avuthunda ani telustadi.
    • 你有参考截图吗?
    • @mepraveenk 明白了...?
    【解决方案2】:

    这里有 2 件事,

    1. 您是否通过使用升级到 WKWebView

    ionic cordova 插件添加 cordova-plugin-ionic-webview --save

    1. CordovaWebViewEngine 的值应为 CDVWKWebViewEngine

    【讨论】:

    【解决方案3】:

    问题在于 inappbrowser 插件,您可能需要将其更新到最新版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-10
      • 2020-12-12
      • 2020-09-16
      • 2020-11-19
      • 2021-09-28
      • 1970-01-01
      • 1970-01-01
      • 2022-10-06
      相关资源
      最近更新 更多