Potato
Potato

Reputation: 259

iframe is not working in ionic app Android

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_&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>

Thank you :)

Upvotes: 0

Views: 2271

Answers (1)

Hassan Siddique
Hassan Siddique

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

Related Questions