cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shakhnazarov (JIRA)" <>
Subject [jira] [Commented] (CB-11305) use cdvfile: cannot import image or js
Date Thu, 26 May 2016 07:18:13 GMT


Sergey Shakhnazarov commented on CB-11305:

The gist is that you can get the file entry using {{cordova.file.applicationDirectory}} +
{{getDirectory}}/{{getFile}} and then [read its contents|]
or use it {{cdvfile}} or native URL with {{fileEntry.toInternalURL()}} or {{fileEntry.toURL()}}

The given example with {{toInternalURL()}} will work after applying your patch.

> use cdvfile: cannot import image or js
> --------------------------------------
>                 Key: CB-11305
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 6.2.0
>         Environment: cordova 6.6.1
> android 5.1.1
>            Reporter: zhuisui
>              Labels: android, reproduced, triaged, wfc
> I use cdvfile://localhost/assets/path to show img and import js, and it doesn't work.
I haven't seen anything about using with assets, but window.resolveLocalFileSystemURL can
handle it to native URL file:///android_asset/path, so I think it should be normal as expected.
> And I didn't test about cdvfile://localhost/temporary|persistent.
> And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s".

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message