2015-06-03 242 views
0

我爲iOS和Android開發了一款具有離子框架的應用程序。 iOS中沒有問題。但是,iframe在Android設備中沒有顯示任何內容,但它在iOS和瀏覽器中運行良好。
這裏是我使用的示例iframe。iframe無法在離子應用程序中工作Android

<div class="card"> 
 
    \t <div class="item item-divider"> 
 
     Number of students in primary education 
 
     \t </div> 
 
     \t <div class="item item-text-wrap"> 
 
\t \t \t <p><iframe width="100%" height="325" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="http://www.google.com/publicdata/embed?ds=d5bncppjof8f9_&amp;ctype=l&amp;strail=false&amp;bcs=d&amp;nselm=h&amp;met_y=se_prm_enrl&amp;scale_y=lin&amp;ind_y=false&amp;rdim=region&amp;idim=country:AFG&amp;ifdim=region&amp;hl=en_US&amp;dl=en_US&amp;ind=false"></iframe></p> 
 
     </div> 
 
    </div>

謝謝:)

+0

您正在使用哪個版本的android平臺? ('cordova platform list')遠程開發者控制檯中是否有錯誤? –

+0

開發者控制檯中的任何錯誤?由於科爾多瓦5.0大多數人需要科爾多瓦白名單插件:https://github.com/apache/cordova-plugin-whitelist –

+0

謝謝你KateMihalikova。設備是4.2.2,在cordova平臺列表中是android 4.0.0。開發者控制檯中沒有問題。 – Potato

回答

1

如果您使用的科爾多瓦5.0或以上再加入白名單的插件。

ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git 
相關問題