Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6167

Camera API saveToPhotoAlbum option on ios returns temp file URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.3.0
    • None
    • cordova-plugin-camera
    • None
    • IOS

    Description

      On ios when using camera getPicture with saveToPhotoAlbum option and destinationType as FileURI, although the captured image is saved to photo album but the returned file URI point to the temp file. It should actually return the URI of image in photo album. Sample code here..

      function onSuccess(imageData) {
         alert(JSON.stringify(imageData));
      }
      				
      function onFail(message) {
          alert('Failed because: ' + message);
      }
      				
      navigator.camera.getPicture(onSuccess, onFail, { quality: 20,
          destinationType: Camera.DestinationType.FILE_URI,saveToPhotoAlbum: true
      });
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sandy801 sandeep paliwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: