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: [email protected]
For additional commands, e-mail: [email protected]