You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/09/16 17:48:00 UTC

[jira] [Commented] (CB-10795) [InAppBrowser] Circular loop if app had an intent-filter defined for the URL being opened

    [ https://issues.apache.org/jira/browse/CB-10795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616812#comment-16616812 ] 

ASF GitHub Bot commented on CB-10795:
-------------------------------------

janpio commented on issue #154: [CB-10795] Exclude current app from external intent list
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/154#issuecomment-421803021
 
 
   @dpolivy I know this has been quite some time ago, but there is a merge conflict now. Could you maybe resolve this? Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> [InAppBrowser] Circular loop if app had an intent-filter defined for the URL being opened
> -----------------------------------------------------------------------------------------
>
>                 Key: CB-10795
>                 URL: https://issues.apache.org/jira/browse/CB-10795
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>            Reporter: Dan Polivy
>            Priority: Minor
>              Labels: Android, triaged
>
> Consider the following scenario:
> 1. App "X" has an intent-filter defined that says it can open URLs for "www.example.com". (e.g., using https://github.com/EddyVerbruggen/Custom-URL-scheme plugin)
> 2. App "X" wants to launch a specific URL on www.example.com in the system browser.
> 3. App "X" uses InAppBrowser plugin and calls {{window.open}} with {{_system}} as the target.
> Actual:
> Since the app itself has an intent-filter defined for "www.example.com", InAppBrowser will just re-launch the app with the intent. In some cases, if a default handler is not chosen, one will get a chooser, however the app will still be listed as the default option.
> Expected:
> The app should be able to launch the URL in the system browser to avoid a circular redirect.
> There is some discussion of this issue on stackoverflow:
> http://stackoverflow.com/questions/18682833/how-to-exclude-a-specific-application-from-action-view-intent
> http://stackoverflow.com/questions/29529027/open-url-in-browser-even-though-my-app-registered-an-intent-filter-for-it
> I think it might be reasonable for InAppBrowser, in {{openExternal}}, to explicitly remove the current app from the list.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org