You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ralph S Theart (JIRA)" <ji...@apache.org> on 2014/02/28 17:44:19 UTC

[jira] [Comment Edited] (CB-6116) Cordova resolveLocalFileSystemURL success call back failing on iOS

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

Ralph S Theart edited comment on CB-6116 at 2/28/14 4:42 PM:
-------------------------------------------------------------

Also using the fixed url without localhost I get it to resolve as stated in my last comment. But to further test the camera api when I use...

NATIVE_URL: ['Camera'] took '*185*.970947' ms.
vs.
FILE_URI: ['Camera'] took '*1321*.890137' ms.

see the diff ..it's weird. I haven't done anything extra just followed the docs of cordova.


was (Author: drumaboy46):
Also using the fixed url without localhost I get it to resolve as stated in my last comment. But to further test the camera api when I use...

NATIVE_URL: ['Camera'] took '*185*.970947' ms.
vs.
FILE_URI: ['Camera'] took '*1321*.890137' ms.

see the diff ..it's weird. I have done anything extra just followed the docs of cordova.

> Cordova resolveLocalFileSystemURL success call back failing on iOS
> ------------------------------------------------------------------
>
>                 Key: CB-6116
>                 URL: https://issues.apache.org/jira/browse/CB-6116
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Camera, Plugin File
>    Affects Versions: 3.3.0
>            Reporter: Ralph S Theart
>            Assignee: Ian Clelland
>              Labels: camera, file, plugin, resolveLocalFileSystemURI
>
> I've just created a new project and installed the file and file-transfer api's via CLI. I have already created a working app previously so I know how to use phonegap and have been doing so for a few years now.
> Here is the code:
> uri from navigator.camera.getPicture(): "file:///localhost/var/mobile/Applications/96B4705C-C70D-4340-9A42-HJ1F28355D43/tmp/cdv_photo_015.jpg"
> window.resolveLocalFileSystemURL(uri, function(fileEntry){
>         console.log(fileEntry.name);
>     }, function(error){
>      console.log('about to resolve this files errors');
>         console.log(error.code);
>     });
> Nothing ever gets outputted in the console debugging window ...and yes I have debug installed cause I have console.log() in other parts of my code that show up.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)