Commit Graph

634 Commits

Author SHA1 Message Date
Dave Alden
27e6c67909 CB-7179 (iOS): Add support to optionally use WKWebView for iOS 2018-09-30 07:44:05 +01:00
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
Dan Polivy
cf58b04097 CB-14234: Don't call handleOpenURL for system URLs (#278)
When calling `.open()` with a target of `_system`, the InAppBrowser on iOS is both launching the URL in the system browser AND also broadcasting to open the URL within the app (calling handleOpenURL). The latter behavior is problematic in many circumstances (e.g. when you want to explicitly open a link in a browser which is a universal link handled by the app).

This commit attempts to address this by checking the return value from openURL -- if it does not open the URL successfully, then (and only then) the code falls back to broadcasting the event within the app to handleOpenURL.
2018-08-22 23:43:06 +02:00
Malte Norström
dc5329d157 CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284) 2018-08-21 10:28:56 +02:00
Chris Brody
de86501026
Merge pull request #277 from brodybits/quick-ci-fixes
Quick CI fixes
2018-07-31 19:30:46 -04:00
Christopher J. Brody
07d9a9939b Skip Android 6.0 on Travis CI (for now) 2018-07-31 19:18:29 -04:00
Christopher J. Brody
81f1437b6d README.md add AppVeyor CI & Travis CI details 2018-07-31 19:05:28 -04:00
Christopher J. Brody
a464ea6875 .travis.yml quick fixes
- skip some platform versions for now
- mark FUTURE TBD platform versions
2018-07-31 19:04:19 -04:00
Christopher J. Brody
e75fe14c4b .appveyor.yml add npm i & add eslint to test
(consistent with test script in package.json)
2018-07-31 18:57:53 -04:00
Christopher J. Brody
eb245ecaf7 .travis.yml add blank lines 2018-07-31 16:54:01 -04:00
jcesarmobile
9cc7f69625
Merge pull request #272 from jcesarmobile/CB-12922
CB-12922 (ios): fix In-app browser does not cede control
2018-07-12 00:30:32 +02:00
Julio César
dac06aa3f3 CB-12922 (ios): fix In-app browser does not cede control 2018-07-01 18:09:47 +02:00
jcesarmobile
26cf6e488c
Merge pull request #269 from timbru31/fix/CB-14061-handle-more-url-schemes
CB-14061: (android) comply with RFC 3986 for custom URL scheme handling
2018-05-19 13:57:13 +02:00
jcesarmobile
33aff11f45
Merge pull request #268 from wtrocki/CB-14048
CB-14048: (android) allowedSchemes check empty string fix
2018-05-19 13:49:36 +02:00
Tim Brust
f57ede9be2
CB-14061: (android) comply with RFC 3986 for custom URL scheme handling 2018-05-02 20:18:34 +02:00
Wojciech Trocki
57eda786e0 CB-14048: (android) allowedSchemes check empty string fix 2018-04-27 00:07:57 +01:00
Fiffi
ec6af56fbd remove statusbar when inAppBrowser is open in andriod 2018-04-23 16:07:17 +00:00
Steve Gill
5581957078 CB-14030 Set VERSION to 3.0.1-dev (via coho) 2018-04-13 12:28:14 -07:00
Steve Gill
757022d85a CB-14030 Updated version and RELEASENOTES.md for release 3.0.0 (via coho) 2018-04-13 12:24:16 -07:00
Steve Gill
49a23e34ba
Merge pull request #266 from jcesarmobile/cordovaDependencies
Update cordovaDependencies to allow plugin install
2018-04-13 11:59:32 -07:00
Julio César
4a5608a7a0 Update cordovaDependencies to allow plugin install 2018-04-13 11:26:53 +02:00
Steve Gill
220cb39f93 Set VERSION to 3.0.1-dev (via coho) 2018-04-12 17:16:16 -07:00
Steve Gill
200f7c1923 CB-14030 Updated version and RELEASENOTES.md for release 3.0.0 (via coho) 2018-04-12 17:06:22 -07:00
Steve Gill
974ca3309a
Merge pull request #254 from NiklasMerz/loading-spinner
CB-13659 (iOS) Add hidespinner option
2018-04-12 12:04:06 -07:00
Joe Bowser
50db5c498c
Merge pull request #263 from SailingSteve/CB-14013-InAppBrowser-AllowCustomSchemes
CB-14013: (android) Change the InAppBrowser to allow custom schemes for oAuth
2018-04-12 12:01:59 -07:00
Steve Gill
013a861493
Merge pull request #260 from bentleyo/navigation-buttons
Fix nav buttons on iOS and allow custom color
2018-04-12 11:40:20 -07:00
stevepodell
42df297724 In file AppBrowser.java: New code within shouldOverrideUrlLoading() to
check for whitelisting custom schemes via a new "AllowedSchemes"
preference configuration item.  Allows custom schemes like
"mycoolapp://" or "wevotetwitterscheme://"

In file inappbrowser.js: Added new "customscheme" channel.
2018-04-05 12:45:02 -07:00
stevepodell
27500c2990 In file AppBrowser.java: New code within shouldOverrideUrlLoading() to
check for whitelisting custom schemes via a new "AllowedSchemes"
preference configuration item.  Allows custom schemes like
"mycoolapp://" or "wevotetwitterscheme://"

In file inappbrowser.js: Added new "customscheme" channel.
2018-04-05 11:54:32 -07:00
stevepodell
4c4bee528e InAppBrowser.java: New method isURLWhileListed to check for whitelisting of
"AllowedSchemes" in a new preference configuration item.
There is a new check in shouldOverrideUrlLoading, to allow whitelisted
custom schemes like "mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
2018-04-05 10:31:00 -07:00
stevepodell
019ec3963f InAppBrowser.java: New method isURLWhileListed to check for whitelisting of
"AllowedSchemes" in a new preference configuration item.
There is a new check in shouldOverrideUrlLoading, to allow whitelisted
custom schemes like "mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
2018-04-05 10:14:54 -07:00
stevepodell
2d69afcd7c InAppBrowser.java: New method isURLWhileListed to check for whitelisting.
Newtest in shouldOverrideUrlLoading, to allow whitelisted custom schemes
like"mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
2018-04-04 15:57:13 -07:00
stevepodell
a6c7b54998 InAppBrowser.java: New method isURLWhileListed to check for whitelisting.
Newtest in shouldOverrideUrlLoading, to allow whitelisted custom schemes
like"mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
2018-04-04 08:42:00 -07:00
stevepodell
44d9bb0f6a InAppBrowser.java: New method isURLWhileListed to check for whitelisting.
Newtest in shouldOverrideUrlLoading, to allow whitelisted custom schemes
like"mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
2018-04-04 08:22:23 -07:00
Bentley O'Kane-Chase
65a825a193 Add customisation of the navigation buttons for iOS 2018-03-21 21:50:25 +10:00
Landsbankinn
b06ad8ed97 CB-13696 fixing for PR 2018-03-13 11:48:15 +00:00
Landsbankinn
cbe3a428f4 CB-13969 cordova-inappbrowser:iOS&Android now includes a extra, optional parameter to swap position of navigationbuttons and close/done button 2018-03-13 11:39:22 +00:00
Landsbankinn
313e0ae6f9 Merge remote-tracking branch 'upstream/master' 2018-03-06 16:58:35 +00:00
Bentley O'Kane-Chase
a3fca87ee5
Fix navigation buttons on iOS 2018-02-22 15:09:09 +10:00
Suraj Pindoria
3f0528c380 CB-13826 Incremented plugin version. 2018-01-25 11:47:20 -08:00
Suraj Pindoria
7eb2e1ea03 CB-13826 Updated version and RELEASENOTES.md for release 2.0.2 2018-01-25 11:41:40 -08:00
Joe Bowser
98ee2e148c
Merge pull request #258 from dpa99c/CB-13791
CB-13791: (android) Add Android support for a footer close button
2018-01-24 09:51:19 -08:00
Dave Alden
b73ba93884 CB-13791: Add Android support for a footer close button 2018-01-17 20:13:19 +00:00
Joe Bowser
c80c338e51
Merge pull request #246 from landsbankinn/CB-13409
Cb 13409 - Add more configurable options for toolbar in android and ios
2018-01-17 11:04:07 -08:00
jcesarmobile
8e3f2f2c53
Merge pull request #257 from jcesarmobile/CB-13746
CB-13746: Add build-tools-26.0.2 to travis
2018-01-09 23:33:54 +01:00
Julio César
8f66f075dd CB-13746: Add build-tools-26.0.2 to travis 2018-01-09 20:28:45 +01:00
Simon MacDonald
1876869a05
Merge pull request #256 from jcesarmobile/fix-release-notes
Fix release notes
2017-12-30 00:57:27 -05:00
Julio César
260542d13c Fix release notes 2017-12-28 20:38:45 +01:00
Simon MacDonald
b9e0a80837 Set VERSION to 2.0.2-dev (via coho) 2017-12-27 19:13:50 -05:00
Simon MacDonald
7c1ea3b5c2 CB-13714 Updated version and RELEASENOTES.md for release 2.0.1 (via coho) 2017-12-27 19:13:36 -05:00
jcesarmobile
3a2c4ef5c0
Merge pull request #255 from jcesarmobile/CB-13699
CB-13699: Fix to allow 2.0.0 version install
2017-12-26 19:13:35 +01:00