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 2016/03/14 09:15:33 UTC

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

jcesarmobile created CB-10855:
---------------------------------

             Summary: 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: Plugin InAppBrowser
            Reporter: jcesarmobile
            Assignee: jcesarmobile
            Priority: Minor


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
(v6.3.4#6332)

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