cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mestre Muten (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6935) [Android][cordova-plugin-file] window.resolveLocalFileSystemURL can't resolve cordova.file.applicationDirectory URL
Date Fri, 13 Jun 2014 16:15:03 GMT

    [ https://issues.apache.org/jira/browse/CB-6935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030795#comment-14030795
] 

Mestre Muten commented on CB-6935:
----------------------------------

Sorry for duplicate issue, I thought it was supported as https://issues.apache.org/jira/browse/CB-285
is marked as resolved.

This is not a major problem for me. I would use it cause I often just include a simple "loader"
in my APKs, which just downloads Apps newest source files and then redirects to last index.html,
but then I have to include the original cordova.js, which is in assets/www directory (downloading
every time cordova JS libraries is not an option for me).

For now I can manage to get assets directory path saving location.href in localStorage (when
"loader" starts up), but of course retrieving it from FileSystem directly would be a better
way.

Are you planning to include it in near future versions of the plugin?

Regards.

> [Android][cordova-plugin-file] window.resolveLocalFileSystemURL can't resolve cordova.file.applicationDirectory
URL
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-6935
>                 URL: https://issues.apache.org/jira/browse/CB-6935
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File
>    Affects Versions: 1.2.0
>         Environment: - Samsung I-9100 Intl (Cyanogenmod 10.2, android 4.3.1)
> - Samgsung GT-P5110 (Cyanogenmod 11, android 4.4.2)
>            Reporter: Mestre Muten
>              Labels: easyfix, patch
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> As of version 1.2.0 of this plugin, some special directory paths were added under cordova.file.*Directory.
> All of them seem to work, but "applicationDirectory" on Android platform doesn't.
> This special directory equals "file:///android_asset/".
> It calls fail callback with error code = 1 (NOT_FOUND_ERR).
> For a simple test just call this on deviceready:
> window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function(dirEntry){console.log('SUCCESS');},function(error){console.log('ERROR:
'+JSON.stringify(error));});



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message