Reputation: 825
I am implementing a cordova application for iOS with a custom protocol.
The custom protocol is set with the use of the plugin cordova-plugin-ionic-webview via <preference name="iosScheme" value="mycustomprotocol" />
in the config.xml.
I am getting the following error in Xcode
ERROR Internal navigation rejected - <allow-navigation> not set for url='mycustomprotocol://localhost'
The plugin docs of cordova-plugin-ionic-webview describe the use of the allow navigation like as follows
<allow-navigation href="mycustomprotocol://*"/>
I tried the following allow-navigation values, but none of them seems to work and the error remained.
<allow-navigation href="mycustomprotocol:*" />
<allow-navigation href="mycustomprotocol://*" />
<allow-navigation href="mycustomprotocol://*/*" />
<allow-navigation href="mycustomprotocol://localhost" />
I also tried the wildcard <allow-navigation href="*" />
but this does not work for custom protocols as stated in the cordova-plugin-whitelist documentation.
Upvotes: 0
Views: 2218