我无法在系统浏览器上从外部打开链接。
Cordova版本9.0.0([email protected])
活动插件:
"cordova-ios": "^5.1.1",
"cordova-plugin-keyboard": "1.2.0",
"cordova-plugin-splashscreen": "^5.0.3",
"cordova-plugin-wkwebview-engine": "^1.2.1"
我在[[config.xml上值得注意的几行
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<preference name="BackupWebStorage" value="local"/>
我尝试过:
window.open(url, "_self") window.open(url, "_blank") window.open(url, "_system")
但是唯一在控制台中起作用并返回内容的函数是带有“ _ self”]] arg的函数。我已经尝试过使用HTML标记:
<a href="http://url" target="_system">foo</a>
但是它也不起作用。[试图找出问题的根源,在我看来,在ios的WebKit WebView上执行wkwebview插件存在一个错误,可能与苹果公司为避免部署UIWebView而最近做出的更改有关-基于应用程序和ios sdk <13:在App Store上>
我无法在系统浏览器上从外部打开链接。 Cordova版本9.0.0([email protected])活动插件:“ cordova-ios”:“ ^ 5.1.1”,“ cordova-plugin-keyboard”:“ 1.2.0”,“ cordova-plugin-splashscreen” “:...
使用以下方法添加到您的项目中: