You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Guy Nesher (JIRA)" <ji...@apache.org> on 2018/04/17 13:05:00 UTC

[jira] [Created] (CB-14037) addEventListener does not work on iOS

Guy Nesher created CB-14037:
-------------------------------

             Summary: addEventListener does not work on iOS
                 Key: CB-14037
                 URL: https://issues.apache.org/jira/browse/CB-14037
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-inappbrowser
    Affects Versions: cordova-ios 4.5.0
            Reporter: Guy Nesher


events are not being fired for loadstop and loadstart (have not tested the rest of the events) on iOS (works fine on Android)

Using the following code:
{code:java}
const browser = cordova.InAppBrowser.open(`https://${this.companyName}.${this.domain}/api/v1/saml`, "_blank", "location=no,toolbar=no");
browser.addEventListener("loadstop", (event: InAppBrowserEvent) => {
  console.log("page changed", event.url);
});

{code}
Tested on Cordova 7.1.0 and cordova-plugin-inappbrowser 3.0.0

 

The plugin repo does mention an issue with OSX (_blank not being supported, and events relying on _blank) but this should not effect iOS to the best of my knowledge



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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