Ionic 1/Cordova 6.2.0“无法加载网页,出现错误:不支持的 URL”错误

问题描述 投票:0回答:1

我们有一个使用 Cordova 的 Ionic 1 应用程序,我们正在尝试与 Cordova 6.2.0 一起使用。我们已经好几年没有更新这个应用程序了,苹果通过电子邮件告诉我们该应用程序需要重新签名才能与 iOS 14.5 兼容。我已将 Cordova 更新到 6.2.0 并更新了插件,但无法让它使用 $state.go 或任何工作链接导航页面。我收到一个弹出窗口,显示“无法加载网页,并出现错误:不支持的 URL”,并在控制台中显示以下错误。

ProcessAssertion: Failed to acquire RBS Background assertion 'WebProcess Background Assertion' for process with PID 8681, error: Error Domain=RBSAssertionErrorDomain Code=3 "Target is not running or required target entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}

cordova-plugin-ionic-webview 插件已安装,下面的行位于 config.xml 中

<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="fb:*" />
<allow-intent href="twitter:*" />
<allow-navigation href="twitter:*" />
<allow-navigation href="fb:*" />
<allow-navigation href="*" />
<allow-navigation href="*://*" />

内容安全策略是

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

我们计划在接下来的几个月内重写该应用程序,但我们需要先使其适用于 iOS 14.5,然后才能完成重写,因为它可能会在几周内发布。

ios angularjs cordova ionic-framework
1个回答
0
投票

https://github.com/microsoft/cordova-plugin-code-push/issues/565 更新或删除 cordova-plugin-code-push

© www.soinside.com 2019 - 2024. All rights reserved.