Can someone help ?! ionic 1.3.3 on iOS 12 with error: <allow-intent> not set for url='unsafe:ionic://localhost%23/menu/aboutUs'

Hi there, I met this error when I build an old ionic project (ionic 1.3.3).

ERROR Internal navigation rejected - <allow-navigation> not set for url='unsafe:ionic://localhost%23/menu/personalData'
ERROR External navigation rejected - <allow-intent> not set for url='unsafe:ionic://localhost%23/menu/personalData'

I have searched a lot, and try every methods, such as:

  1. Add the following in config.xml and add meta tag CPS in index.html, this is not working
<allow-intent href="http://ionic.local/*" />
<allow-navigation href="http://ionic.local/*" />
  1. Try to add in config.xml, still got error, which print, not supported url in xcode console.
<allow-intent href="*" />
<allow-navigation href="*" />
  1. Try to add , still not working
<allow-intent href="ionic:*" />
<allow-navigation href="ionic:*" />

Can someone help ?

Note: even I start a new project with ionic-cli

ionic start testionic1project --type ionic1

when I build with

ionic cordova build ios

and debug in xcode 10.12.1 in iPhone XR simulator, I also got this error!

Looks like we are in the same boat, I was looking for a solution. However i did not solve it yet. Did you happen to find the solution, please let me know

Yes, I’ve solved this problem, check the following:
in some html template, there is some like this

<ion-item class="item-icon-right" menu-close href="#/example">

just change that to:

<ion-item class="item-icon-right" menu-close ui-sref="#/example">

it works for me.

1 Like

Thanks for the response, Now i don’t get the error for allow intent not set, no errors at all. But there is no navigation happening.
I set the following

  1. allow-intent for ionic:*
  2. allow-intent for unsafe:*
  3. allow-navigation for both of the above with ///

And more so the State is missing so had to switch back to href

Please try change tag,

<ion-item class="item-icon-right" menu-close ui-sref="#/example">

worked for me, thanks.

Not working For me… Tell me how to solve it… For Webview version 1.1.12 href was working very well but when i update webview plugin to 4.1.3 href not working…

Can you give me proper code lines for this?

  1. allow-intent for ionic:*
  2. allow-intent for unsafe:*
  3. allow-navigation for both of the above with // /