19

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! :)

1
  • 1
    hi, did you manage to solve this issue because i have this same problem?
    – AN11
    Jul 7, 2016 at 10:27

2 Answers 2

44

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.

0
16

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.