58 Commits

Author SHA1 Message Date
ekidder3
df8bcaf751 CB-8467
Added support for hiding the web view container.  This maintains the browser
session without closing it.  The browser window can be repeatedly hidden and
shown.

** This has only been tested on android and ios **

amazon/android:
An additional `hide` action was added to `InAppBrowser#execute`.  It is
identical to `show`, except that it calls `dialog.hide()` instead.

blackberry10:
no changes

firefoxos:
Added a `hide` method that is identical to `show`, indicating it is not
supported.

ios:
Added a `hide` method that is identical to `show`, except that it uses
`dismissViewControllerAnimated`.  It checks the value of
`_previousStatusBarStyle`.  If it is `-1`, the method returns with no
action performed.  If it is not, it is set to `-1.`

ubuntu:
Added a `hide` method that sets `CordovaWrapper.global.inappbrowser.visible` to
`false`.

windows:
Added a `hide` method that sets `browserWrap.style.display` to `none`.

wp:
Added a `hide` method that is identical to `show`, except that it sets
`browser.Visibility` to `Visibility.Collapsed` and sets `AppBar.IsVisible` to
`false`.
2016-10-18 10:41:26 -04:00
Alexander Sorokin
ab696f6ebd CB-12010 (android) Catch FileUriExposedException 2016-10-17 13:06:28 +03:00
Nikita Matrosov
2df0e72c36 CB-11694 Android: Set hadwareBackButton value according option in cordova.InAppBrowser.open
HadwareBackButton value persists across usages. By default hardwareBack value is null. In this case we should set hadwareBackButton  to default value.

 This closes #188
2016-09-28 11:04:12 +03:00
Gavin Pacini
cc2ec22695 Add intent scheme to be handled by OS
The intent scheme `intent://` is [recommended by Google ](https://developer.chrome.com/multidevice/android/intents) for launching apps. Cordova should forward this to the OS to handle appropriately.

 This closes #183
2016-08-29 23:51:09 +02:00
Simon MacDonald
57b50b1d65 Plugin uses Android Log class and not Cordova LOG class 2016-08-22 16:41:34 -04:00
daserge
698648f15d CB-11013 IAB enabling background play of YouTube videos?
Adds shouldPause feature to stop backgound audio
2016-08-18 18:25:38 +03:00
Vasiliy Makarov
56dca03de7 fix some calls which used api level 16
This closes #170
2016-07-21 22:02:25 +02:00
Rob Close
bcdc0b9da0 CB-11381 android: Does not pass sonarqube scan
The problem is "Empty Catch Block", which sonarqube considers a blocker.  Added
a log message to the empty block.

 This closes #169
2016-06-08 12:40:50 +03:00
Alexis Kofman
21f4de0e2a CB-10944 : NoSuchMethodError in InAppBrowser plugin
This closes #158
2016-03-24 11:00:51 -07:00
Alexis Kofman
68054819d8 CB-10937 fix stretched icons
This closes # 157
2016-03-23 14:28:00 -07:00
Connor Pearson
98b63cc37e CB-3360: Set custom inappbrowser user agent for android
github close #95
2016-02-08 22:40:27 +03:00
Wolfram Kriesing
234cca4e5b CB-10395 InAppBrowser's WebView not storing cookies reliable on Android
github close #147
2016-02-08 12:15:24 +03:00
Sean Kelly
b51a4dc54e CB-7786 Support mediaPlaybackRequiresUserAction on Android
This closes #132
2016-02-04 14:15:41 +03:00
sgrebnov
be1f6076c2 CB-7500 executeScript with callback kills/blurs inAppBrowser window on Android
github close #146
2016-02-04 14:08:22 +03:00
sgrebnov
73ed40fe07 CB-6702 InAppBrowser hangs when opening more than one instance
github close #144
2016-02-01 14:00:52 +03:00
sgrebnov
4d9e4884dd CB-10456 InAppBrowser is not closed if I close it programmatically on Android
guthub close #143
2016-02-01 13:59:42 +03:00
Joe Bowser
8da5e25eee CB-10407: Re-adding onPageStarted to re-add LOAD_START, even though it's in the wrong place 2016-01-22 14:22:58 -08:00
Joe Bowser
212e0a34d8 CB-8180: Changing methods of interception in WebViewClient class
This closes #136
2016-01-15 14:11:59 -08:00
Martin Bektchiev
518596a96f Fix lint warnings
This closes #120
2016-01-15 11:45:23 -08:00
Connor Pearson
9b576f303b CB-8534: Allow plugins to respond to onReceivedHttpAuthRequest. This closes #82 2015-11-20 19:59:43 +03:00
Paul Weber
1afd42aabb CB-9799 Fixed javaDoc errors.. This closes #119 2015-11-10 16:45:00 +03:00
Anton Antonov
74aa099b7e CB-9158 - InAppBrowser zoomControls are always set to true 2015-06-18 20:28:32 +03:00
Jesse MacFadyen
b96c4a7d9a Merge branch 'master' of https://github.com/jellekralt/cordova-plugin-inappbrowser 2015-03-04 17:42:43 -08:00
Jesse MacFadyen
a45dbc80b4 updated docs, set hardwareback default to true 2015-03-04 00:26:57 -08:00
Jesse MacFadyen
9de15ac8bf Merge branch 'master' of https://github.com/kriserickson/cordova-plugin-inappbrowser 2015-03-04 00:13:29 -08:00
Maxime Boucher-Allard
f8a80ce27d Keep external android pages in a single tab. (close #61) 2015-02-19 19:56:26 -05:00
Ian Clelland
514469ab24 CB-7897: Update to work with whilelist plugins in Cordova 4.x 2014-12-03 09:29:22 -05:00
Marcel Kinard
50a78baf22 CB-7712 remove references to closebuttoncaption
The code for this had been previously commented out, but was still listed in
the docs. So remove it from the docs and remove the dead comments.
2014-10-24 17:45:09 -04:00
Jelle Kralt
720123718e Added option to disable/enable zoom controls
This change supports Android and Amazon Fire OS
2014-09-11 10:46:47 +02:00
Marcel Kinard
81161ebe66 Add just a bit more logging 2014-08-27 14:11:43 -04:00
Kris Erickson
392a73c2cd Add a hardwareback option to allow for the hardware back button to go back. 2014-03-09 11:33:24 -07:00
Oliver Moran
6f373f7ed9 fix for CB-5534
Signed-off-by: Joe Bowser <bowserj@apache.org>
2014-02-28 14:04:25 -08:00
Andrew Grieve
985d94ee00 Add missing import for previous commit 2014-01-19 21:56:59 -05:00
Ian Clelland
e807bc3dc0 CB-5756: Android: Use WebView.evaluateJavascript for script injection on Android 4.4+ 2014-01-19 21:22:02 -05:00
Joe Bowser
0ce0eed585 Didn't test on ICS or lower, getDrawable isn't supported until Jellybean 2014-01-16 13:55:53 -08:00
Joe Bowser
43f8935541 Adding the buttons 2014-01-16 11:33:44 -08:00
Ian Clelland
9795b2e9dc CB-5756: Add missing import 2014-01-13 15:09:38 -05:00
Ian Clelland
255c5269c3 CB-5756: Android: Use WebView.evaluateJavascript for script injection on Android 4.4+ 2014-01-13 14:34:32 -05:00
Andrew Grieve
6163f17aeb CB-5592 Add a comment explaining why we set MIME only for file: 2013-12-20 11:10:33 -05:00
gianluca
176890f305 CB-5592 Android - Add MIME type to Intent when opening file:/// URLs
To avoid the "No Activity found to handle Intent..." error.
2013-12-20 11:06:10 -05:00
Andrew Grieve
5ef5171003 CB-4858 - Run IAB methods on the UI thread. 2013-10-10 12:40:27 -04:00
Andrew Grieve
8df4b7d03b CB-3747 Fix back button having different dismiss logic from the close button.
Also made the IAB close when the owner page is navigated (implemented
onReset).
2013-10-10 11:51:58 -04:00
Andrew Grieve
8cd786b603 CB-5021 Expose closeDialog() as a public function and make it safe to call multiple times. 2013-10-10 08:07:46 -04:00
Joe Bowser
eef27f8891 CB-4864, CB-4865: Minor improvements to InAppBrowser 2013-09-17 15:51:54 -07:00
Max Woghiren
0a3c5587e3 [CB-4792] Added keepCallback to the show function. 2013-09-11 12:44:09 -04:00
Joe Bowser
8b52796a89 CB-4586: Making loadUrl run on the UI thread for close dialog to stop the WebView error 2013-08-28 14:20:01 -07:00
Steven Gill
be364c081d Merge branch 'master' into dev 2013-08-19 15:09:47 -07:00
Andrew Grieve
9f93423596 [CB-4417] Move cordova-plugin-inappbrowser to its own Java package. 2013-08-14 15:44:36 -07:00
Ian Clelland
0916db9bdb [CB-3616] Change option name to "clearcache" to match original proposal 2013-08-09 10:20:02 -04:00
kira
629964d61c add "clearallcache" and "clearsessioncache" option to InAppbrowser 2013-08-09 00:16:47 -04:00