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 2017/06/27 21:58:00 UTC

[jira] [Commented] (CB-8467) inappbrowser -- provide ability to hide browser window without closing session

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

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

Github user bgallz commented on the issue:

    https://github.com/apache/cordova-plugin-inappbrowser/pull/101
  
    Thank you for providing this update!
    
    I have one question however. I am using Ionic v2.1.4 with iOS v4.0.1 (not sure that's relevant in this case) and I am seeing that the view controller used in the hide method here does not have any effect.
    
    This line:
    `[self.viewController dismissViewControllerAnimated:YES completion:nil];`
    
    Does not appear to do anything. However, when I make the dismiss call like so:
    `[self.inAppBrowserViewController dismissViewControllerAnimated:YES completion:nil];`
    
    The InAppBrowser is hidden as expected. Can anyone else confirm this?
    
    Thanks again!


> 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: cordova-plugin-inappbrowser
>    Affects Versions: Master
>         Environment: iOS, Android
>            Reporter: Eric Kidder
>              Labels: Triaged
>
> 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.4.14#64029)

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