Ionic 3 不工作

Ionic 3 <allow-navigation>不工作

问题描述:

我试图在离子3应用程序中使用iframe。Ionic 3 <allow-navigation>不工作

当我在Android上运行时,iframe工作正常,但iOS没有。

在我的config.xml中我添加此线(在其他计算器问题描述)

<access origin="*" /> 
<alow-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:*" /> 

我加2个的config.xml文件

AppName/config.xml 

AppName/platforms/ios/AppName/config.xml 

本线但它仍然无法正常工作。在XCode中,我得到这个错误信息:

ERROR Internal navigation rejected - <allow-navigation> not set for url='gap://ready' 

的withlist插件版本是

"cordova-plugin-whitelist": "^1.3.1" 

我是不是忘了什么?

。在你的config.xml中一个错字,请更改

  • <alow-navigation href="*" />

  • <allow-navigation href="*" />