2017-10-17 89 views
0

我試圖在離子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" 

我是不是忘了什麼?

回答

1

。在你的config.xml中一個錯字,請更改

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

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