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

"download" parameters in documentation are inconsistent with implementation

    XMLWordPrintableJSON

Details

    Description

      According to documentation "download" action parameters are as follows (optional ones are marked [as such]):

      In iOS implementation the parameters are different:

      I am no Android, Windows or WP developer but reading those platforms' implementations it seems like they all in fact require some sort of a download id at index 3.

      All of this means that some of the plugin functionality cannot be used by users because they are misguided by documentation. It also means that there is a problem with arguments order, because "downloadId" is mandatory while "trustAllHosts" is not.

      I will submit a pull request via github to update the documentation. If this is enough for the community we could leave it at that.

      Otherwise it seems like how it should actually be done is as follows:

      • source
      • target
      • download id
      • [trustAllHosts]
      • [headers]

      I can/will easily do this for iOS and make necessary changes to the documentation although I will need some help to fix this/review my blindfolded fixes on other platforms.

      Attachments

        Activity

          People

            Unassigned Unassigned
            IvanKarpan Ivan Karpan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: