Using allow-navigation impacts allow-intent on iOS
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 1k
- Avg merge
- 12h 11m
- Merged PRs (30d)
- 18
Description
In my app I have some links with the tag `` and also with javascript with the code below.
```javascript
let url = param;
window.open(url, '_system');
```
My config.xml is configured as below, and opening links works perfectly, when clicking on a link or executing the `window.open` function, it opens Safari and the URL together.
```xml
```
However, as I need to display some videos from YouTube and Vimeo (iframe), I needed to add the `allow-navigation` tag, but when I do that, the `allow-intent` setting is ignored and all links start opening inside the app.
```xml
```
I use `https://*/* `because the user can make infinite URLs available and so it would be interesting for him to be able to open any one.
I don't know if this is a bug or my fault.
- Cordova: 11.1.0
- Cordova iOS: 6.2.0
Contributor guide
Research direction
No source file or test is named. Start by reproducing the behavior with the shown config.xml rules and the JavaScript window.open call, then inspect how Cordova iOS evaluates allow-navigation versus allow-intent; done means the precedence is explained or the reported external-link behavior is corrected and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100