You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "El-Tommy (via GitHub)" <gi...@apache.org> on 2023/02/08 18:21:24 UTC
[GitHub] [cordova-ios] El-Tommy opened a new issue, #1285: Using allow-navigation impacts allow-intent on iOS
El-Tommy opened a new issue, #1285:
URL: https://github.com/apache/cordova-ios/issues/1285
In my app I have some links with the tag `<a href="">` 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 attachment together.
```
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
```
However, as I need to display some videos from YouTube and Vimeo, 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.
```
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="https://*youtube.com/*"/>
<allow-navigation href="https://*vimeo.com/*" />
```
I don't know if this is a bug or my fault.
- Cordova: 11.1.0
- Cordova iOS: 6.2.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-ios] SvyatoslavPozhydaev commented on issue #1285: Using allow-navigation impacts allow-intent on iOS
Posted by "SvyatoslavPozhydaev (via GitHub)" <gi...@apache.org>.
SvyatoslavPozhydaev commented on issue #1285:
URL: https://github.com/apache/cordova-ios/issues/1285#issuecomment-1508613651
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-ios] El-Tommy commented on issue #1285: Using allow-navigation impacts allow-intent on iOS
Posted by "El-Tommy (via GitHub)" <gi...@apache.org>.
El-Tommy commented on issue #1285:
URL: https://github.com/apache/cordova-ios/issues/1285#issuecomment-1424125400
One option would be to go through all the static and dynamic links (which come via AJAX requests) and add an onClick event to use the inAppBrowser with _system, but I don't know how to do this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org