Reputation: 259
I developed an app with ionic framework for both iOS and Android. There is no problem in iOS. But, iframe is not showing anything in Android device although it works very well in iOS and browser.
Here is sample iframe I used.
<div class="card">
<div class="item item-divider">
Number of students in primary education
</div>
<div class="item item-text-wrap">
<p><iframe width="100%" height="325" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" src="http://www.google.com/publicdata/embed?ds=d5bncppjof8f9_&ctype=l&strail=false&bcs=d&nselm=h&met_y=se_prm_enrl&scale_y=lin&ind_y=false&rdim=region&idim=country:AFG&ifdim=region&hl=en_US&dl=en_US&ind=false"></iframe></p>
</div>
</div>
Thank you :)
Upvotes: 0
Views: 2271
Reputation: 1590
If you are using cordova 5.0 or above then add the white-list plugin.
ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git
Upvotes: 1