Andre Pavini
Andre Pavini

Reputation: 353

Ionic 3 <allow-navigation> not working

I´m trying to use a iframe inside my ionic 3 app.

When I run on Android, the iframe works fine, but iOS not.

In my config.xml I add this lines (as described in others stackoverflow questions)

<access origin="*" />
<alow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />

I add this lines on 2 config.xml files

AppName/config.xml

AppName/platforms/ios/AppName/config.xml

But it still not working. On XCode, I get this error message:

ERROR Internal navigation rejected - <allow-navigation> not set for url='gap://ready'

The withlist plugin version is

"cordova-plugin-whitelist": "^1.3.1"

Am I forgotten something?

Upvotes: 0

Views: 5279

Answers (1)

Sascha
Sascha

Reputation: 1849

There is a typo in your config.xml, please change

  • <alow-navigation href="*" />

to

  • <allow-navigation href="*" />

Upvotes: 5

Related Questions