[jira] [Commented] (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-tabpanelfocusedCommentId=13915744#comment-13915744 ] Ian Clelland commented on CB-6116: -- If there really are three / characters between {{file:}} and {{localhost}}, then that could be an error in the Camera plugin, and File definitely wouldn't resolve it (although it should return an error). Is that paste correct? 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 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915926#comment-13915926 ] Ian Clelland commented on CB-6116: -- What versions of the File and Camera plugins are you using? I just tried this flow with Mobile Spec -- The Camera test page can do this. Taking a picture with the camera, asking for a FILE_URI to be reurned, results in the this being logged: {code:bgColor=#AA|borderColor=#FFD324} 8.981: Getting picture with options: {sourceType:1,destinationType:1,encodingType:0,mediaType:0,quality:0,allowEdit:true,correctOrientation:true,saveToPhotoAlbum:true} 16.931: URL: file:///var/mobile/Applications/51119246-636E-449D-ADC0-4B3238C8D087/tmp/cdv_photo_001.jpg 16.938: Call to resolveLocalFileSystemURI() success: [cdvfile://localhost/temporary/cdv_photo_001.jpg] {code} And the {{file://}} URL is usable as an image source as well. 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915937#comment-13915937 ] Ralph S Theart commented on CB-6116: sorry posted this after I saw your comment. File: v1.0.0 Camera: v0.2.7 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915944#comment-13915944 ] Ian Clelland commented on CB-6116: -- Thanks, Ralph -- I'll check that out; the callbacks certainly should be being called: either the success or failure callback. If neither is being called, that sounds like a bug in File. Can you try removing localhost from your URL, and see if resolveLocalFileSystemURL returns when the URL is 'file:///var/mobile/Applications/B819A941-0CBF-4321-9B1D-94E2B01DAE97/tmp/cdv_photo_001.jpg' ? 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915951#comment-13915951 ] Ralph S Theart commented on CB-6116: Thanks Ian I'm going to try some more things. It's so strange but I think you might be right. I've also already uninstalled file-transfer/file and reinstalled. I'll you know how further testing goes. 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915956#comment-13915956 ] Ralph S Theart commented on CB-6116: Really wish the site would auto update comments...keep commenting before I get your comments :/ Just tried your suggestion and of course it worked. 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915963#comment-13915963 ] Ralph S Theart commented on CB-6116: 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915964#comment-13915964 ] Ian Clelland commented on CB-6116: -- (Hehe, I have come to the habit of hitting Cmd-R before replying :) ) Thanks for filing this; it's definitely a bug in File. {{file:///}} URLs are being resolved correctly, but {{file://localhost/}} URLs are not, and the error callback is just never being issued in that case. I'll see if I can get that fixed quickly, hopefully in time for v1.0.1. 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915968#comment-13915968 ] Ian Clelland commented on CB-6116: -- Re: The long processing times -- can you open another issue for that? It might be an easy fix, but it's almost certainly unrelated to this one :) 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13915979#comment-13915979 ] Ralph S Theart commented on CB-6116: sure thanks again Ian..also if fix won't make it by v1.0.1 should I just string replace the url to be file:/// without /localhost/ there right? in the mean time. 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)
[jira] [Commented] (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-tabpanelfocusedCommentId=13916203#comment-13916203 ] Ian Clelland commented on CB-6116: -- Yes, as a workaround, strip localhost from the string and it should work correctly with v1.0.0. I have the fix ready; I'm just adding some more tests to make sure that all of the edge cases are covered right now. 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 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)