Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Cannot Reproduce
-
None
-
None
Description
If you try to use the dialogs plugin on the inAppBrowser exit event you'll get a warning message
Warning: Attempt to present <UIAlertController: 0x14e9b0e40> on <CDVInAppBrowserNavigationController: 0x14d878a00> whose view is not in the window hierarchy!
and won't be displayed.
Sample 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);
The exit event should be called once the InAppBrowser window is completely dismissed, not before