cordova-plugin-inappbrowser/src
Dan Polivy a0783378fc [CB-10795] Exclude current app from external intent list (#154)
On Android, if the app defines an intent-filter for a given URL, and
then tries to use inappbrowser to launch that URL via the _system
target, the default handler for that intent is the app itself.

That behavior can lead to circular loops, and ultimately is not what the
developer wants -- the link should be launched in a browser.

Because there is no easy way to find the "default" system browser on a
device, this solution will do two things:
1) Check if the app is one of the targets for this intent
2) If so, create a custom chooser with all other targets, excluding the
current app.

If the app is not a target, then the current (existing) behavior is
preserved.

The only real "downside" to this approach is that a default handler can no longer be set for these URLs within the app, and a chooser will be shown each time the user taps a link that opens in a new browser.

Fixes https://issues.apache.org/jira/browse/CB-10795
2018-09-20 22:43:52 +02:00
..
android [CB-10795] Exclude current app from external intent list (#154) 2018-09-20 22:43:52 +02:00
browser CB-12895 : added eslint and removed jshint 2017-08-29 15:13:21 -07:00
ios CB-14234: Don't call handleOpenURL for system URLs (#278) 2018-08-22 23:43:06 +02:00
osx CB-11955 Added Initial OSX platform support 2016-10-13 12:43:39 +09:00
windows CB-12895 : added eslint and removed jshint 2017-08-29 15:13:21 -07:00