You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (Jira)" <ji...@apache.org> on 2020/06/25 16:48:00 UTC

[jira] [Closed] (CB-10855) cordova-plugin-dialogs doesn't work on cordova-plugin-inappbrowser exit event

     [ https://issues.apache.org/jira/browse/CB-10855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-10855.
-----------------------------
    Resolution: Cannot Reproduce

can't reproduce anymore, was probably fixed long ago

> cordova-plugin-dialogs doesn't work on cordova-plugin-inappbrowser exit event
> -----------------------------------------------------------------------------
>
>                 Key: CB-10855
>                 URL: https://issues.apache.org/jira/browse/CB-10855
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>            Reporter: jcesarmobile
>            Assignee: jcesarmobile
>            Priority: Minor
>              Labels: ios, triaged
>
> If you try to use the dialogs plugin on the inAppBrowser exit event you'll get a warning message
> {quote}
> Warning: Attempt to present <UIAlertController: 0x14e9b0e40> on <CDVInAppBrowserNavigationController: 0x14d878a00> whose view is not in the window hierarchy!
> {quote}
> and won't be displayed.
> Sample code:
> {code}
> var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');
> var myCallback = function(event) { 
>     navigator.notification.alert("message", null, "MyAppTitle", 'OK'  );
> }
> ref.addEventListener('exit', myCallback);
> {code}
> The exit event should be called once the InAppBrowser window is completely dismissed, not before



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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