Cordova-window.open不';我不能在IOS上工作
使用时,我无法在IOS上打开cordova应用程序中的链接Cordova-window.open不';我不能在IOS上工作,ios,cordova,hybrid-mobile-app,phonegap,Ios,Cordova,Hybrid Mobile App,Phonegap,使用时,我无法在IOS上打开cordova应用程序中的链接 window.open('http://maps.apple.com/?q='+label, '_system'); 但它可用于(但不在浏览器中): 在my config.xml中,我将以下内容列为白名单: <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <
window.open('http://maps.apple.com/?q='+label, '_system');
但它可用于(但不在浏览器中):
在my 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:*" />
在my index.html中:
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:">
我真的不明白这个问题
谢谢在我的iOS Cordova应用程序中,只有当事件与触摸相关时,窗口.open()才会工作,而不是像onDeviceReady()或setTimeout()这样的自动事件
在onclick()事件后执行window.open可以正常工作。在我的iOS Cordova应用程序中,window.open()仅在事件与触摸相关时工作,而不是与onDeviceReady()或setTimeout()等自动事件相关时才工作 在onclick()事件之后执行window.open可以正常工作
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:">