[
https://issues.apache.org/jira/browse/CB-9851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Shakhnazarov updated CB-9851:
------------------------------------
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.
> Document cdvfile protocol quirk - using cdvfile:// in the DOM is not
> supported on Windows
> -----------------------------------------------------------------------------------------
>
> Key: CB-9851
> URL: https://issues.apache.org/jira/browse/CB-9851
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Reporter: Sergey Shakhnazarov
> Assignee: Sergey Shakhnazarov
> Priority: Minor
> Labels: cdvfile, windows
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]