[
https://issues.apache.org/jira/browse/CB-8467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395470#comment-14395470
]
ASF GitHub Bot commented on CB-8467:
------------------------------------
GitHub user herrevilkitten opened a pull request:
https://github.com/apache/cordova-plugin-inappbrowser/pull/101
CB-8467 provide hide method to hide browser window
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`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/herrevilkitten/cordova-plugin-inappbrowser
CB-8467_provide_hide_method_to_hide_browser_window
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-inappbrowser/pull/101.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #101
----
commit 573b1bdc777370a8af860a5b6044e8ddb3f69932
Author: ekidder3 <[email protected]>
Date: 2015-02-05T12:20:57Z
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`.
----
> inappbrowser -- provide ability to hide browser window without closing session
> ------------------------------------------------------------------------------
>
> Key: CB-8467
> URL: https://issues.apache.org/jira/browse/CB-8467
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin InAppBrowser
> Affects Versions: Master
> Environment: iOS, Android
> Reporter: Eric Kidder
>
> I have a need to hide the InAppBrowser UI without closing the session. This
> is to handle a situation I have, where a RESTful interface uses
> authentication and will redirect users to a separate login page.
> The InAppBrowser is created with hidden=yes, so that it is created without a
> UI.
> When the user is authenticated, the JSON will be downloaded normally and the
> browser window will not be shown.
> When the user is not authorized, they will be redirected to an HTML page in
> order to authenticate.
> After authentication, the user is redirected back to the API URL, where the
> JSON will be displayed in the InAppBrowser.
> Having the ability to hide the browser window will keep the user from seeing
> the JSON and improve the user experience.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]