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

iOS plugins should be able to override URL loading

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0
    • cordova-ios
    • None

    Description

      Android plugins have had the ability to override URL loading since approximately forever. We'd like to provide iOS plugins with the same abilities.

      By modifying [CDVViewController webView:shouldStartLoadWithRequest:navigationType:] to first iterate over all plugins, seeing if any of them implement a method to handle the URL, and then presenting the request to each of them in turn, we can allow plugins to intercept and modify or block specific URL requests.

      Attachments

        Activity

          People

            iclelland Ian Clelland
            iclelland Ian Clelland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: