【问题标题】:do i need to use latest plugins to fix UIWebview issue?我需要使用最新的插件来修复 UIWebview 问题吗?
【发布时间】:2020-07-17 16:07:51
【问题描述】:

由于应用商店中的 UIWebView 问题(ITMS-90809:已弃用的 API 使用),我的 ionic ios 应用被拒绝。我在我的应用程序中使用以下插件。

fcm-with-dependecy-updated(v2.4.0)、facebook4(v5.0.0)、x-socialsharing(v5.4.7)、googleplus(v7.0.1)

我需要将这些插件更新到最新版本来解决 UIWebView 问题吗? 当我使用这些插件的最新版本时,会出现以下错误

'FBSDKCoreKit/FBSDKCoreKit.h' file not found   
'firebasecore/firebasecore.h' file not found  
'GoogleSignIn/GoogleSignIn.h' file not found

任何人都知道我该如何解决这个问题。

【问题讨论】:

  • 您可以尝试添加最新的平台,例如ionic cordova platform add ios@latest
  • 我使用的是 Cordova ios 5.1.1。也尝试了 6.0.0。仍然存在问题
  • 啊,那么一个插件有旧的 UIwebview
  • @AthifShaffy 是的。旧版本的 fcm、facebook4、googleplus 插件正在使用 UIebView。我已经使用新版本修复了

标签: ios ionic-framework uiwebview app-store ionic4


【解决方案1】:

我会建议你使用

https://github.com/dpa99c/cordova-plugin-firebasex

此 firebase 插件已通过适用于 Ionic iOS 的最新 UIWebView 解决了问题。

另外,在 config.xml 中添加

<platform name="ios">
  <preference name="WKWebViewOnly" value="true" />
      <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
      </feature>
  <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
</platform>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多