Reputation: 259
I developed an app with ionic framework for both iOS and Android. There is no problem in Android. But, iframe is not showing anything in iOS device and simulator although it works very well in Android and browser. Please help me! :)
Upvotes: 19
Views: 16405
Reputation: 1801
Try adding this to your config.xml file inside <platform name="ios">
tags:
<allow-navigation href="*" />
Had the same issue and it worked for me.
Upvotes: 45
Reputation: 626
Marco solution works great but allows any URL in your app iframes, so there could be security issues.
If you know the possible URLs of your iframes, limit the allow-navigation settings as below:
<allow-navigation href="https://*youtube.com*" />
<allow-navigation href="https://*vimeo.com*" />
That will only let your approved URLs to be loaded in iframes.
Upvotes: 16