mattocchi commented on issue #783:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/783#issuecomment-1907071885

   I'm facing same issue with Android 13 using 
   
   
   1) workaround that seem to work for me:
   
   ```javascript
   function onPhotoURISuccess(imgUri) {
       console.log(imgUri); // on Android 13 it's a uri without file:// and 
resolveLocalFileSystemURL will fail.
   
       // in case of resolveLocalFileSystemURL fail I'll try to manage imgUri 
as imgData and store Base64 encoded data to a new File.
       window.resolveLocalFileSystemURL(imgUri, function success(fileEntry) {
           console.log(JSON.stringify(fileEntry));
           console.log("got file: " + fileEntry.fullPath);
           return fileEntry;
       }, function (error) {
           console.log(error.code); // on Android 13 it's Error Code 5
           var tmp = createNewFileEntry(imgUri);
           return tmp;
       });
   }
   ```
   
   2) root cause
   debugging the cordova-plugin-camera at `CameraLauncher.java` the 
`processResultFromGallery` will return `finalLocation` the "imgUri" that look 
like 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to