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

addEventListener does not work on iOS

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: cordova-ios 4.5.0
    • Fix Version/s: None
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              guynesher123 Guy Nesher

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment