You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/07/31 00:20:40 UTC

[jira] [Commented] (CB-6624) Issues closing the presented InAppBrowser from within loadstart events

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

Shazron Abdullah commented on CB-6624:
--------------------------------------

>From an email I received:

I'm using an InAppBrowser window for twitter oauth login flow. There's a bug where windowRef.close() breaks the inAppBrowser because the close animation cannot start due to the open animation still happening. This is a common case when the twitter authenticate auto-redirects to success based on previous logged in state.

I need a presentation style that does not animate, (animate:NO) so I can close the InAppBrowser window arbitrarily fast instead of doing it in a 500ms timeout. ObjectiveC api allows it, but it's not exposed through the plugin interface.

I will hack something together for my needs and move on. If you resolved this in 'master' I'll switch back.

An alternative API that would work would be a window.close() type call that could close the inappbrowser as the launched page, instead of having to call windowRef.close() from catching a specific 'loadstart' event.

> Issues closing the presented InAppBrowser from within loadstart events
> ----------------------------------------------------------------------
>
>                 Key: CB-6624
>                 URL: https://issues.apache.org/jira/browse/CB-6624
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>         Environment: iOS
>            Reporter: Shazron Abdullah
>
> Pull request: https://github.com/apache/cordova-plugin-inappbrowser/pull/42
> Only Navigate *after* the webview has been transitioned to visually.
> (The infamous "while a presentation is in progress!" warning was displayed in the logs)



--
This message was sent by Atlassian JIRA
(v6.2#6252)