Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14037

addEventListener does not work on iOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • cordova-ios 4.5.0
    • None
    • None

    Description

      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:

      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);
      });
      
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            guynesher123 Guy Nesher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: