[
https://issues.apache.org/jira/browse/CB-6116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915936#comment-13915936
]
Ralph S Theart commented on CB-6116:
------------------------------------
I tried your suggestion but to no avail. I did cordova info so at least you
know what I have if it might help
Current Node Version: v0.10.25
Current Cordova CLI Version: 3.3.1-0.4.2
I noticed that when I have the camera option
*destinationType = Camera.DestinationType.FILE_URI;*
There is a slight pause after I have chosen and image...it just sits there for
a few milliseconds. It's noticeably slower than if I set it to NATIVE_URI for
some reason.
At any rate here is the new code I tried with a fixed path to a temp image I
verified existed by using xcode's Organizer to look at my application.
{quote}
urlToResolve =
'file://localhost/var/mobile/Applications/B819A941-0CBF-4321-9B1D-94E2B01DAE97/tmp/cdv_photo_001.jpg';
window.resolveLocalFileSystemURL(urlToResolve, function(fileEntry){
console.log('RESOLVED');
}, function(error){
console.log('COULD NOT RESOLVE');
});
{quote}
None of the call backs ever gets called...what should I do...I have not idea
what the issue is?? If I use remove the urlToResolve that I have and feed it
dynamically from the call back of navigator.camera.getPicture() with NATIVE_URI
set, the success callback gets triggered and it will say RESOLVED...something
wrong with the camera api?
> 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)