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

Document cdvfile protocol quirk - using cdvfile:// in the DOM is not supported on Windows

    XMLWordPrintableJSON

Details

    Description

      From Slack discussion:
      ghenry22: I noticed on windows platform that cdvfile:// resource paths don't resolve in the web view and just present a broken link, for example using img ng-src cdvfile://localhost/persistent/images/test.jpg works perfectly on ios and android but on the windows platform (building windows 10 universal app) the image show as broken links
      if I inspect the dom and dynamically change the path to the image to be ms-appdata:///local/images/test.jpg the image pops up and displays as normal

      Seems like cordova plugins internally all work fine resolving cdvfile urls (ie file, file transfer, media) but the webview will not resolve them. Not sure if this is a bug or a limitation of the webview in windows universal apps, if it is a limitation it would be good to have a note about it against this platform so no one else spends days trying to figure out what is up with that.

      Attachments

        Activity

          People

            daserge Sergey Shakhnazarov
            daserge Sergey Shakhnazarov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: