cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10855) cordova-plugin-dialogs doesn't work on cordova-plugin-inappbrowser exit event
Date Mon, 14 Mar 2016 08:15:33 GMT
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


Mime
View raw message